ReadOnly mode
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 61
- Joined: Tue Oct 27, 2015 11:49 am
ReadOnly mode
Post by Konstantin »
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 ?
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: ReadOnly mode
Post by Gabriel Titerlea »
Hello,
This method is the API:
It will work in text mode as well in the next release (18.1)
Regards,
Gabriel
This method is the API:
Code: Select all
editor.getActionsManager().invokeOperation(
'SetReadOnlyStatusOperation',
{'read-only': true}
);
Regards,
Gabriel
-
- Posts: 61
- Joined: Tue Oct 27, 2015 11:49 am
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service