Retrieve the insert position in a text
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Retrieve the insert position in a text
Hello everyone,
I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to retrieve the exact insert position in a text.
Currently I have overridden the method in our own class.
But I only manage to use the offset attribut to get the current node.
And I don't manage to retrieve the exacte position of the insert in the text of this node.
I tried to use the method from with as parameters but without success.
Is it possible to retrieve this position ?
I need it to automatically detect specific abbreviations when users writes in a document.
Regards,
Isabelle
I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to retrieve the exact insert position in a text.
Currently I have overridden the method
Code: Select all
insertText
Code: Select all
DocumentFilter
But I only manage to use the offset attribut to get the current node.
And I don't manage to retrieve the exacte position of the insert in the text of this node.
I tried to use the method
Code: Select all
getFilteredText
Code: Select all
AuthorDocumentController
Code: Select all
offset -1 and offset
Is it possible to retrieve this position ?
I need it to automatically detect specific abbreviations when users writes in a document.
Regards,
Isabelle
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Retrieve the insert position in a text
Hi Isabelle,
So you want to somehow look around the current offset and see what text is there, right?
Maybe you can create a text content iterator ro.sync.ecss.extensions.api.AuthorDocumentController.getTextContentIterator(int, int) starting from the current node's start offset to the current offset and use it to see what text is there.
Regards,
Radu
So you want to somehow look around the current offset and see what text is there, right?
Maybe you can create a text content iterator ro.sync.ecss.extensions.api.AuthorDocumentController.getTextContentIterator(int, int) starting from the current node's start offset to the current offset and use it to see what text is there.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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