Sample Javascript-based Author Operations
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ask-for-attribute-value
copy-xml-to-clipboard
insert-schema-element-fragment A sample operation that builds an element fragment based on the schem… Sep 25, 2018
preview-dita-table
replace-conrefs-keyrefs
replace-with-xinclude
split-section
start-process
xquery-update-js Create Readme.txt Aug 26, 2016
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md

README.md

javascript-sample-operations

Sample Javascript-based Author Operations.

For each XML document edited in the Oxygen Author editing mode you can define a framework configuration in the "Document Type Association" preferences page. In the framework associations besides being able to specify a CSS used for rendering:

http://blog.oxygenxml.com/2014/08/the-oxygen-sdk-part-2-frameworks.html

you can also construct Author actions and mount them on the main menus, toolbars or contextual menus. Each Author action is based on one or more Author operations. Among the default available Author operations:

https://www.oxygenxml.com/doc/versions/18.0/ug-editor/topics/dg-default-author-operations.html

there is a JSOperation which can be used to execute small pieces of Javascript code which use the Author API to make complex changes to the XML.

This project has various samples of using JSOperations to perform various changes to the XML opened in the Author editing mode.

Copyright and License

Copyright 2018 Syncro Soft SRL.

This project is licensed under Apache License 2.0