Find All Element Oxygen editor feature to add in Oxygen Web author

Having trouble installing Oxygen? Got a bug to report? Post it all here.
shilpa
Posts: 66
Joined: Mon Jul 04, 2022 8:42 am

Find All Element Oxygen editor feature to add in Oxygen Web author

Post 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.
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Find All Element Oxygen editor feature to add in Oxygen Web author

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply