Edit online

It is possible to configure the Content Completion Assistant to insert a certain XML structure instead of an element. For example, suppose that whenever a DITA <change-completed> element is inserted with the Content Completion Assistant, you want the current date to be inserted as the text content of the <change-completed> element.

This can be achieved by defining a custom Author mode action in your custom framework:
  1. In Oxygen XML Editor/Author, go to Options > Preferences > Document Type Association and edit the document type configuration for your framework.
  2. Go to the Author tab, then the Actions subtab, and click the New button.
  3. Define the custom action and include the following details:
  4. Go to the Content Completion subtab and add the action to the content completion menu.
    Note: If the action implemented in JavaScript, you will need to also create a dummy action with the same ID in the framework and insert it in the content completion menu. The dummy action should have an operation but is not important which one.
  5. Remove the <change-completed> element from the content completion list. You can do this by editing the cc_config.xml configuration file for your custom framework and use the rejectElements element to filter out the <change-completed> element. For information, see Configuring the Proposals for Elements and Attributes.
  6. Save the changes to your custom framework.
  7. Create an archive that only contains your custom framework folder and upload your framework to Web Author.
Tip: Another possibility to achieve this specific example is to use a custom form control when the <change-completed> element is empty.