Using CKEditor 3.6.5, we found that when set call editor.setReadOnly(true) the buttons are appearing to be read-only, and the SOURCE mode is read-only, but the WYSIWYG mode is still allowing changes, with the INSERTION bar being allowed as well as the DELETE key (but not backspace) and I can type new data in.
You can see it on our demo page:
http://open.esignforms.com/VaadinCKEditor/
I noted this works fine in an example (where the INSERTION bar is not allowed):
http://nightly.ckeditor.com/7660/_samples/readonly.html
The only difference I can see is that the example use TEXTAREA and we use a DIV (with CKEDITOR.appendTo). But it is my understanding I can use a DIV instead of replacing a TEXTAREA (and it certainly works in every other regard that I've noted).
Tue, 11/20/2012 - 03:11
#1
Readonly working in 4.0, but now SOURCE mode breaks content
Now that the forums are open again, does anybody know about this?
I just checked with the 4.0 version, and this problem seems to have gone away. However, toggling between SOURCE and WYSIWYG mode adds this to my buffer (whether in read-only mode or not):
--><!--{cke_protected}
That of course causes all sorts of problems with no understanding why changing modes would cause ANYTHING to be written to my editor contents.