After searching for information and find similar cases, I've found a way to put the editor in read mode. It also works if there are many editors on the same page, whether reading or writing. The operation of the editors are correct in all cases.
CKEDITOR.on(""instanceReady"", function (ev) {
var editorCKE = CKEDITOR.instances.<My_Editor>;
editorCKE.on('key', function(keyEvent) {
keyEvent.cancel();
});
CKEDITOR.replace('<My_Editor>');
});
To avoid possible uses of the buttons also have hidden and locked the toolbar.
Re: How to make CKEditor readonly ?
I'm stating that there's a simple solution that also provides better performance than your requested solution.
Re: How to make CKEditor readonly ?
To avoid possible uses of the buttons also have hidden and locked the toolbar.
Re: How to make CKEditor readonly ?
How about setting the textarea to disabled?
Re: How to make CKEditor readonly ?
with the disabled part above it is like a reader.
i use cke for a self writen webmail and i go from read to reply/forward dynamicly so no page refresh, i use
Re: How to make CKEditor readonly ?
config.readOnly = true;
But i want to change it with js or asp.net, but that seems to be broken.
Re: How to make CKEditor readonly ?