Surround with elements and copy text content
Post here questions and problems related to oXygen frameworks/document types.
Surround with elements and copy text content
Hi,
I'm wondering if this is somehow possible with Author Mode actions:
Selecting a text snippet "Hey" in Author mode, turning it into this:
I tried to implement such a tagging mechanism with a combination of "ExecuteMultipleWebappCompatibleActionsOperation", "InsertFragmentOperation" and "ToggleSurroundWithElementOperation", but so far I've got no desired results.
I'm wondering if this is somehow possible with Author Mode actions:
Selecting a text snippet "Hey" in Author mode, turning it into this:
Code: Select all
<a><b><d>Hey</d></b><c>Hey</c></a>
Re: Surround with elements and copy text content
Hi,
From what I tested one way would be to use the predefined operation InsertOrReplaceFragmentOperation with the fragment to insert being:
More about editor variables:
https://www.oxygenxml.com/doc/versions/ ... ables.html
Regards,
Radu
From what I tested one way would be to use the predefined operation InsertOrReplaceFragmentOperation with the fragment to insert being:
Code: Select all
<a><b><d>${selection}</d></b><c>${selection}</c></a>
https://www.oxygenxml.com/doc/versions/ ... ables.html
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