Check read only from framework.js
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 21
- Joined: Wed Jan 16, 2019 5:16 am
Check read only from framework.js
Post by nstensland »
Is there a way to determine at oxygen document has loaded event, if the document is read only? Looking to do this from a framework.js file on client side.
Thanks,
Nat
Thanks,
Nat
-
- Posts: 496
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Check read only from framework.js
Post by cristi_talau »
Hello,
You can use a place some JavaScript code in the "web/framework.js" file of the framework. To get a reference to the current editor, you can use a code snippet like below:
For more details, see https://www.oxygenxml.com/doc/versions/ ... _framework .
Best,
Cristian
You can use a place some JavaScript code in the "web/framework.js" file of the framework. To get a reference to the current editor, you can use a code snippet like below:
Code: Select all
MyExtension = function() {}
MyExtension.prototype.editorCreated = function (editor) {
// ... work with the editor...
};
sync.ext.Registry.extension = new MyExtension();
Best,
Cristian
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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