Opened 5 years ago

Last modified 4 years ago

#13125 confirmed Bug

FF Only - The space after a contenteditable element is ignored when backspacing

Reported by: Christophe Guillou Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3
Keywords: Firefox IE Cc: ChrisGui@…, irinauru@…

Description

We found an issue in 4.4.x version where in ACF mode, we observe unexpected behaviour when we attempt deleting a white space character following a contenteditable=false span tag.

To reproduce the defect, use the following config:

CKEDITOR.editorConfig = function( config ) {

ACF configs config.allowedContent = true; turn off ACF by default

};

Open Firebug for you test sample page

  1. In the console: CKEDITOR.instances.editor1.setData('Hey <span contenteditable="false"><a>there</a></span> :)')

(Notice here the space following the closing of the span tag and before colon character eg. "</span> :"

  1. Click on the editor (caret is at the end of the line) and start removing characters using backspace until you reach ':' and click backspace again to remove it.
  1. Hit backspace again-> the cursor goes inside the contenteditable area skipping the empty space

Change History (4)

comment:1 Changed 5 years ago by Christophe Guillou

Cc: ChrisGui@… added

comment:2 Changed 5 years ago by Jakub Ś

Status: newconfirmed
Version: 4.3

Problem can be reproduced from CKEditor 4.3 in Firefox and IE. I haven't been able to reproduce it in Blink or Webkit.

NOTE: in earlier versions cursor disappears but white space is removed. Starting from CKE 4.3, backspace moves focus to span what is shown nicely with elements path.

comment:3 Changed 5 years ago by Jakub Ś

Keywords: Firefox IE added

comment:4 Changed 4 years ago by Irina

Cc: irinauru@… added
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy