Parameter syntax:
[ 'implicitDocument'|'implicitElement' ]? 'false'|'true'|'toggle'
Changes the read-only mark of an element or of the whole document.
Without option implicitDocument
or implicitElement
, this command changes the read-only mark of the explicitly selected element.
With option implicitElement
, this command changes the read-only mark of the explicitly or implicitly selected element.
With option implicitDocument
, this command changes the read-only mark of the whole document unless an element is explicitly selected, in which case, it changes its read-only mark.
Parameter value:
Removes the read-only mark from selected node and all its descendants then marks the selected node as read-only.
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).
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