Issue #2291439 by Wim Leers, tstoeckler: Fixed CKEditor's "readonly" needs to be per-instance but is applied per-format, across instances.
parent
7a42da238c
commit
a22e23113d
|
@ -14,10 +14,8 @@
|
||||||
// CKEditor initializes itself in a read-only state if the 'disabled'
|
// CKEditor initializes itself in a read-only state if the 'disabled'
|
||||||
// attribute is set. It does not respect the 'readonly' attribute,
|
// attribute is set. It does not respect the 'readonly' attribute,
|
||||||
// however, so we set the 'readOnly' configuration property manually in
|
// however, so we set the 'readOnly' configuration property manually in
|
||||||
// that case.
|
// that case, for the CKEditor instance that's about to be created.
|
||||||
if (element.hasAttribute('readonly')) {
|
format.editorSettings.readOnly = element.hasAttribute('readonly');
|
||||||
format.editorSettings.readOnly = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return !!CKEDITOR.replace(element, format.editorSettings);
|
return !!CKEDITOR.replace(element, format.editorSettings);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue