Opened 9 years ago

Last modified 9 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

  1. Add focus listener to editor
  2. set editor to read only
  3. 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 9 years ago by Dusty Jewett

comment:2 Changed 9 years ago by kkrzton

Status: newconfirmed

Confirmed for CKEditor 4.5.8 on Chrome 49.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy