128. XXE.setReadOnly

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:

Parameters:

true

Ensures that specified document is in read-only state.

false

Ensures that specified document is in editable state.

toggle

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.