Page 1 of 1
Author action to search and replace in file using regex
Posted: Thu Oct 19, 2017 1:21 pm
by xephon
Hi,
I'd like to format my document by applying multiple regular expressions, preferably in text mode (not in author mode). (How) is this possible?
Greetings,
Stefan
Re: Author action to search and replace in file using regex
Posted: Thu Oct 19, 2017 1:49 pm
by Radu
Hi Stefan,
An Oxygen plugin has enough API to manipulate the XML contents, either in the Text or in the Author editing modes.
We have a GitHub repository of Javascript-based Oxygen plugins:
https://github.com/oxygenxml/wsaccess-j ... le-plugins
One of the plugins there is called "contributePopupActionTextPage", it contributes a new contextual menu action to the Text editing page, action which when invoked takes the selected text content, changes it and inserts it back.
The plugins work using Oxygen's Java-based API:
https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/
Regards,
Radu