Move caret position programatically in Oxygen XML Web Author
Oxygen general issues.
Move caret position programatically in Oxygen XML Web Author
Hi, How to move the caret position to desired element in Oxygen XML Web Author
scenario - I've a list(ul) and the user is allowed to place the cursor in any of the list items(li) to edit using a form like dialog. I'm able to navigate the DOM till the parent 'ul' and the type of object I got is "sync.api.dom.Element" I want to place the caret position on this parent 'ul'. Please let me know how to move the caret to the parent 'ul'
scenario - I've a list(ul) and the user is allowed to place the cursor in any of the list items(li) to edit using a form like dialog. I'm able to navigate the DOM till the parent 'ul' and the type of object I got is "sync.api.dom.Element" I want to place the caret position on this parent 'ul'. Please let me know how to move the caret to the parent 'ul'
-
- Posts: 496
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Move caret position programatically in Oxygen XML Web Author
Post by cristi_talau »
Hello,
You can try using something like:
Best,
Cristian
You can try using something like:
Code: Select all
var selInUl = sync.api.Selection.createEmptySelectionInNode(element, 'before');
editor.getSelectionManager().setSelection(selInUl);
Cristian
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