29. ensureSelectionAt
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 29. ensureSelectionAt

Parameter syntax:

    [ 'selectElement' ]?

This command is intended to be bound to a mouse input (typically a `drag` `appEvent` -- see Section 1, “binding” in <ttl>XMLmind XML Editor - Configuration and Deployment</ttl>). 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.

Prev | Up | Next
28. editPITarget | Home | 30. execute