Added setReadOnly method

For one of my projects, I wanted a read-only log view, so I needed to expose the setReadOnly editor method. Implementation is straightforward.