ReadOnly mode
Posted: Thu Aug 18, 2016 2:19 pm
In Webapp I use different ways to switch ReadOnly mode:
also I tried:
In Author mode it works but in Text mode it dosn't works.
In ReadOnly I can change text in Text mode and return to Author mode.
Do you have API to make Text mode as ReadOnly ?
Code: Select all
AuthorDocumentModel documentModel;
documentModel.getWSEditor().setEditable(!isReadOnly);
documentModel.getWSEditor().getCurrentPage().setEditable(!isReadOnly);
documentModel.getWSEditor().getCurrentPage().getParentEditor().setEditable(isReadOnly);
documentModel.getAuthorAccess().getEditorAccess().setEditable(!isReadOnly);
Code: Select all
editor.getActionsManager().invokeOperation(
'SetReadOnlyStatusOperation',
{'read-only': true}
);
In ReadOnly I can change text in Text mode and return to Author mode.
Do you have API to make Text mode as ReadOnly ?