I am working on plugin for Oxygen Editor, which based on some user interaction it replaces text in a document. I done the text replacement logic based on some thread here on your forum ( i am working in author mode), so it looks something like this:
Code: Select all
AuthorDocumentController docController = authorPageAccess.getDocumentController(); ... docController.beginCompoundEdit(); docController.delete(startOffset, endOffSet); docController.insertText(startOffset, replaceWith); docController.endCompoundEdit(); ...
1) My question is that how can i make this work? Or what am i doing wrong here?
2) Another is question is that, can i do something similar in grid/text layout?
Thank you in advance,