71. setEditable

Parameter syntax:

[ 'implicitDocument'|'implicitElement' ]? 'false'|'true'|'toggle'

Changes the read-only mark of an element or of the whole document.

Parameter value:

false

Removes the read-only mark from selected node and all its descendants then marks the selected node as read-only.

true

Removes the read-only mark from selected node and all its descendants.

Note that this commands fails if selected node has an ancestor marked as read-only (because changing the read-only mark would not make selected node editable).

toggle

If selected node is editable, behaves like when parameter value is false. If selected node is not editable, behaves like when parameter value is true.

Example:

setEditable [implicitDocument] toggle