Parameter syntax:
[ 'true'|'false'|'toggle' ]? [file_name
|URL
]?
Changes the state of specified document from read-only to editable or the other way round.
Unlike command setReadOnly
, this command also acts on the write lock, if any, of specified document:
When the state of a locked document is changed from editable to read-only, the lock is automatically removed.
When the state of a document is changed from read-only to editable (and the user wishes her/his documents to be locked), a lock is automatically added.
Parameters:
Ensures that specified document is in read-only state.
Ensures that specified document is in editable state.
Changes the state of specified document from read-only to editable or the other way round. This is the default option.
file_name
or URL
Specifies document location. By default, applies to the current document.
Returns null
.