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.
-
- Posts: 68
- Joined: Mon Jul 04, 2022 8:42 am
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.
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
image.png
and in the actionPerformed i have added below respectivelyactionPerformed(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
You do not have the required permissions to view the files attached to this post.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
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
-
- Posts: 68
- Joined: Mon Jul 04, 2022 8:42 am
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.
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
In case of strikethru and deleted.material element the text is not getting strike below are the images for reference
image.png
image.png
may i know how to make strike to text using above two elements.Please do the needful.
Thanks in advance!
Shilpa.P
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 233
- Joined: Wed Aug 30, 2023 2:33 pm
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.
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
Best,Cosmin
You do not have the required permissions to view the files attached to this post.
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