Opened 10 years ago
Last modified 10 years ago
#13807 confirmed Bug
ReadOnly editor does not fire focus events
| Reported by: | Dusty Jewett | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Core : Editable | Version: | 4.5.4 |
| Keywords: | Cc: |
Description
Steps to reproduce
- Add focus listener to editor
- set editor to read only
- click on editor
See: https://jsbin.com/fevaxa/edit?html,js,output
Expected result
Editor should fire focus events
Actual result
Editor does not fire focus events.
Other details (browser, OS, CKEditor version, installed plugins)
This bug is caused by the implementation of setReadOnly, which, contrary to it's name, does not set 'readonly', but rather sets contenteditable=false, which is NOT the same.
Input-related events no longer fire, and the component behaves differently because of this.
It appears that this has been the case since 2012, with no changes or modifications in the mean time.
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
| Status: | new → confirmed |
|---|
Confirmed for CKEditor 4.5.8 on Chrome 49.

Pull Request Submitted: https://github.com/ckeditor/ckeditor-dev/pull/220