Customizing the DITA Maps Manager View
You can add a listener to be notified when a new DITA map is opened, selected, or closed in the DITA Maps Manager view. Once the editorOpened() callback is received, you can obtain the opened WSEditor API, then send its current page to the WSDitaMapEditorPage.
The API method WSDitaMapEditorPage allows you to interact with the DITA map that is open in the DITA maps Manager view:
-
Add a customizer for the icons and text presented in the tree.
-
Enable or disable editing on the tree.
-
Set a popup menu customizer.
-
Get the selected nodes.
-
Get access to the AuthorDocumentController API to make changes to the content.
Sample plugins:
-
JavaScript-based plugin that customizes the icons and text presented for a DITA map that is open in the DITA Maps Manager view: https://github.com/oxygenxml/wsaccess-javascript-sample-plugins/tree/master/dmmCustomizeTopicTitlesAndIcons.
-
JavaScript-based plugin that adds a new contextual menu action for a DITA map that is open in the DITA Maps Manager view: https://github.com/oxygenxml/wsaccess-javascript-sample-plugins/tree/master/contributePopupActionDMM.