Opened 9 years ago
Last modified 9 years ago
#14558 confirmed Bug
Widgets gets deleted when editor is readonly
Reported by: | Duskfall | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Selection | Version: | 4.3 |
Keywords: | Cc: |
Description
Steps to reproduce
- Make editor readOnly in config
- Use a widget like placeholder
- Try to delete placeholder
Expected result
Do nothing
Actual result
Widget gets deleted in read only editor
Tested in 4.5.7 and 4.5.8
Change History (2)
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.7 → 4.3 |
comment:2 Changed 9 years ago by
Applied a simple fix for me in core. In private function del i added if(editor.readOnly) return false; Added also a unit test. Will commit in a bit
Problem can be reproduced from CKEditor 4.3 and is a part of a larger ticket #12134.
To reproduce:
CKEDITOR.instances.editor1.setReadOnly(true);
NOTE: In IE error is thrown but this is reported in #11825