Disabling Ckeditor, Re-enabling With Js
I have the following: POST page that allows users to write text in CKEditor VIEW Page, that views the text in CKEditor How can I make CKEditor in the view page READ only, meaning t
Solution 1:
not sure if you are still looking for an answer but here is what I did and it was much simpler than the work around they suggest.
<scripttype="text/javascript">window.onload = function () {
CKEDITOR.on("instanceReady", function (ev) {
var bodyelement = ev.editor.document.$.body;
bodyelement.setAttribute("contenteditable", false);
});
CKEDITOR.replace('editor1');
};
</script>
Solution 2:
Check this CKEditor forum entry where the issue is discussed, and a CKEditor team member provides a workaround.
Solution 3:
An important update to this thread, as of 3.6 this is supported by: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setReadOnly
Post a Comment for "Disabling Ckeditor, Re-enabling With Js"