Webauthor - get selected text via JS api
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 17
- Joined: Mon Nov 19, 2018 10:49 pm
Webauthor - get selected text via JS api
I am trying to get the text from a user selection such as "The quick brown <i>fox</i> jumps over". The user in this case selected the text "brown <i>fox</i> jumps" but when i try to get the text via the getSelection js api all I see is brown and jumps. What I want is just the text "brown fox jumps".
Thank you
Thank you
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Webauthor - get selected text via JS api
Hi,
If you want to make some processing on that selection or make further actions it is better to invoke a custom action [1] in which to obtain the selected text by using the JAVA API [2]. Please let us know if you need more information on this.
[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
[2] https://www.oxygenxml.com/InstData/Edit ... ctedText--
Best regards,
Mihaela
If you want to make some processing on that selection or make further actions it is better to invoke a custom action [1] in which to obtain the selected text by using the JAVA API [2]. Please let us know if you need more information on this.
[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
[2] https://www.oxygenxml.com/InstData/Edit ... ctedText--
Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
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