The readonly parameter may be used to query or set if the document can be edited with the current view.
query command
set command
The current view.
query readonly
set readonly { on | off }
on | Use the on parameter to indicate that the document should be protected from changes through the current document view. |
off | Use the off parameter to indicate that the document may be changed through the current document view. |
query readonly set readonly on