27. drag

No parameter.

This command is intended to be bound to a mouse input. It is generally used by the macro-command which is bound to the drag appEvent in XMLmind XML Editor - Configuration and Deployment. See example.

If the mouse is clicked anywhere inside the node or text selection, this command returns a string representation of the selection. Otherwise this command first selects the element clicked upon and then returns a string representation of the newly selected element.

The returned string may be quickly described as follows:

See also ensureSelectionAt.