28. ensureSelectionAt

Parameter syntax:

[ 'selectElement' ]?

This command is intended to be bound to a mouse input (typically a drag appEvent -- see Section 1, “binding” in XMLmind XML Editor - Configuration and Deployment). If the mouse is clicked anywhere inside the node or text selection, this command does nothing at all. Otherwise this command selects the node clicked upon.

If the selectElement option is specified and the node clicked upon is not an element (e.g. a text node), then, it is its parent element which is selected.