Allows you to enable/disable read-only mode.
editor.setReadOnly(readOnly)
Type: boolean
True to make the editor read-only; otherwise, false.