set share dialog text fields to read only

This commit is contained in:
uogau 2021-03-08 01:36:43 +01:00
parent 77e565426a
commit dc4aaeda0a

View File

@ -67,6 +67,10 @@ public class ShareDialog extends Dialog implements LocaleChangeObserver {
latexArea.setClassName(FIELD_CLASS);
UI.getCurrent().getPage().executeJs("window.autoSelect($0)", FIELD_CLASS);
urlField.setReadOnly(true);
packageArea.setReadOnly(true);
latexArea.setReadOnly(true);
layout.add(urlField, packageArea, latexArea);
add(headingLayout, layout);