Page 1 of 1
Find All Element Oxygen editor feature to add in Oxygen Web author
Posted: Thu Jul 07, 2022 1:18 pm
by shilpa
Hi Oxygen Team,
Need help to integrate Find All Element feature from editor to oxygen web author.
And also need a modal(dialog) where we can display the found elements and on click of element it should get highlight in the document.
Please do the needful.
Re: Find All Element Oxygen editor feature to add in Oxygen Web author
Posted: Thu Jul 07, 2022 3:13 pm
by mihaela
Hello,
You can use the JavaScript API [1] [2] to create an action that presents a dialog to the user [3].
Then, you can invoke a custom operation [4] [5] that finds the nodes, using XPATH for example [6].
Then you can show another dialog to present the results (or you can add a custom view [6] for this).
Please let us know if you need any further information.
You can also use our sample plugins [7] as examples during your customization.
[1]
https://www.oxygenxml.com/maven/com/oxy ... 0.0/jsdoc/
[2]
https://www.oxygenxml.com/doc/versions/ ... ng_js.html
[3]
https://www.oxygenxml.com/maven/com/oxy ... ialog.html
[4]
https://www.oxygenxml.com/maven/com/oxy ... ction.html
[5]
https://www.oxygenxml.com/doc/versions/ ... ft_dgk_54b
[6]
https://www.oxygenxml.com/maven/com/oxy ... mview.html
[7]
https://github.com/oxygenxml/web-author-sample-plugins
Best Regards,
Mihaela