Prevent Mouse Focus jumping into Oxygen Editor
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Wed Jan 04, 2023 5:27 pm
Prevent Mouse Focus jumping into Oxygen Editor
Post by duy_Nguyen12 »
Hello everyone !
We want to update text-content of elements in Oxygen from our own View.
The problem is that, when we use insert-methods (insertXMLFragment, insertFragment, insertMultipleFragments, insertText..), the mouse focus always jumps into the Oxygen-Editor where the content was inserted.
But what we need is, that the mouse-focus stays in our own view.
Is there any way to prevent the mouse-focus from jumping into Oxygen Editor ?
EDIT: Edited mouse-cursor to mouse focus
Best Regards and happy new year,
Khoi
We want to update text-content of elements in Oxygen from our own View.
Code: Select all
private void insertNewTextContent(AuthorElement authorElement, AuthorDocumentController documentController,
String content) {
try {
documentController.delete(authorElement.getStartOffset() + 1, authorElement.getEndOffset());
documentController.insertXMLFragment(content, authorElement.getStartOffset() + 1);
} catch (AuthorOperationException e) {
e.printStackTrace();
}
}
But what we need is, that the mouse-focus stays in our own view.
Is there any way to prevent the mouse-focus from jumping into Oxygen Editor ?
EDIT: Edited mouse-cursor to mouse focus
Best Regards and happy new year,
Khoi
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