Commit a22e2311 authored by alexpott's avatar alexpott

Issue #2291439 by Wim Leers, tstoeckler: Fixed CKEditor's "readonly" needs to...

Issue #2291439 by Wim Leers, tstoeckler: Fixed CKEditor's "readonly" needs to be per-instance but is applied per-format, across instances.
parent 7a42da23
......@@ -14,10 +14,8 @@
// CKEditor initializes itself in a read-only state if the 'disabled'
// attribute is set. It does not respect the 'readonly' attribute,
// however, so we set the 'readOnly' configuration property manually in
// that case.
if (element.hasAttribute('readonly')) {
format.editorSettings.readOnly = true;
}
// that case, for the CKEditor instance that's about to be created.
format.editorSettings.readOnly = element.hasAttribute('readonly');
return !!CKEDITOR.replace(element, format.editorSettings);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment