Not able to add tags for strikethrough and delete
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Not able to add tags for strikethrough and delete
Hi Oxygen Team,
I have registered two custom icons Strikethrough and Delete in oxygen web author plugin.
and in the actionPerformed i have added below respectively
actionPerformed(callback) {
jaEditor.getActionsManager().invokeOperation('ro.sync.ecss.extensions.commons.operations.ToggleSurroundWithElementOperation', {
element: '<deleted.material style="percent_op" xmlns="http://www.thomsonreuters.com/legal/jud ... d.material>'
});
callback();
}
actionPerformed(callback) {
jaEditor.getActionsManager().invokeOperation('ro.sync.ecss.extensions.commons.operations.ToggleSurroundWithElementOperation', {
element: '<strikethru xmlns="http://www.thomsonreuters.com/legal/jud ... strikethru>'
});
callback();
}
when i select text and click on icon text is not wrapping with the elements which is defined for the icons.
Please let me is there anything i have missed.
Thanks & Regards
Shilpa.P
I have registered two custom icons Strikethrough and Delete in oxygen web author plugin.
- image.png (567 Bytes) Viewed 433 times
- image.png (549 Bytes) Viewed 433 times
actionPerformed(callback) {
jaEditor.getActionsManager().invokeOperation('ro.sync.ecss.extensions.commons.operations.ToggleSurroundWithElementOperation', {
element: '<deleted.material style="percent_op" xmlns="http://www.thomsonreuters.com/legal/jud ... d.material>'
});
callback();
}
actionPerformed(callback) {
jaEditor.getActionsManager().invokeOperation('ro.sync.ecss.extensions.commons.operations.ToggleSurroundWithElementOperation', {
element: '<strikethru xmlns="http://www.thomsonreuters.com/legal/jud ... strikethru>'
});
callback();
}
when i select text and click on icon text is not wrapping with the elements which is defined for the icons.
Please let me is there anything i have missed.
Thanks & Regards
Shilpa.P
Re: Not able to add tags for strikethrough and delete
Hello,
in your code the value of the "element " parameter is not a valid XML element fragment (it has only the stat tag of the element included). You have to close the element or add the end element tag.
Also, the callback can be given as parameter of invokeOperation call:
https://www.oxygenxml.com/maven/com/oxy ... on__anchor
Best Regards,
Mihaela
in your code the value of the "element " parameter is not a valid XML element fragment (it has only the stat tag of the element included). You have to close the element or add the end element tag.
Also, the callback can be given as parameter of invokeOperation call:
https://www.oxygenxml.com/maven/com/oxy ... on__anchor
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Re: Not able to add tags for strikethrough and delete
Thank You Mihaela!!
Now it's working but i am getting some other issue
In case of deleted.text element the text is striking as you can see in the image.
In case of strikethru and deleted.material element the text is not getting strike below are the images for reference
may i know how to make strike to text using above two elements.
Please do the needful.
Thanks in advance!
Shilpa.P
Now it's working but i am getting some other issue
In case of deleted.text element the text is striking as you can see in the image.
- image.png (3.59 KiB) Viewed 399 times
- image.png (2.39 KiB) Viewed 399 times
- image.png (3.66 KiB) Viewed 399 times
Please do the needful.
Thanks in advance!
Shilpa.P
Re: Not able to add tags for strikethrough and delete
Hello,
This can be achieved with CSS. We recommend using the CSS inspector function in Web Author so you can see how the <deleted.text> element is styled.
Best,
Cosmin
This can be achieved with CSS. We recommend using the CSS inspector function in Web Author so you can see how the <deleted.text> element is styled.
- CSS-inspector.png (155.4 KiB) Viewed 392 times
Cosmin
Cosmin Eftenie
www.oxygenxml.com
www.oxygenxml.com
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