I'm having a hard time using setReadonly
of CKEDITOR. I want to use setReadonly
when the Editor is already loaded and ready to be used. I tried using instanceReady
:
var editor;
CKEDITOR.on( 'instanceReady', function( ev ){
editor = ev.editor;
editor.setReadOnly( true );
});
but this does not work, I tried using buttons like the sample is using and it works fine. Is there anyway to setReadonly
automatically when the editor is ready to be used?
Thanks