Class: EditingContextChangedEvent

EditingContextChangedEvent()

XMLEditorEvent sent whenever the editing context changes, for example because the selection changes, because some data has been copied to the clipboard, etc.

Constructor

new EditingContextChangedEvent()

Source:

Classes

EditingContextChangedEvent

Members

clipboardUpdate :object

Get the clipboardUpdate property of this event: an object if the clipboard has been updated on the server side; null otherwise.

clipboardUpdate object is empty if the clipboard is empty. Otherwise it contains:

  • label: a short text describing the content.
  • inclusion: true if the content consists in included nodes.
  • source: a text representation of the content.
Type:
  • object
Source:

commandStates :Object

Get the commandStates property of this event: an array containing the states of all the "contextual commands" registered with the XMLEditor.

This array contains pairs:

  • enabled, a boolean.
  • detail, an object (generally null) which depends on the command.
Type:
  • Object
Source:
See:

nodePathItems :Object

Get the nodePathItems property of this event: an array containing information about the full path of currently selected node.

Returned information always starts with information about the root element of the document.

Returned array is empty if there is no currently selected node. Otherwise it contains triplets:

  • Node UID.
  • Node tag.
  • Information about the node. A possibly empty list of strings separated by newlines.

    First, an empty string or some flags separated by commas: "sel": impicitely or explicitely selected, "ro": read-only.

    Possibly followed by attribute name/value pairs.

Type:
  • Object
Source: