Opened 9 years ago

Last modified 8 years ago

#12677 confirmed Bug

[Google Chrome] Triple-clicking a heading and then pressing backspace forces the text below to inherit the deleted heading styles

Reported by: Keyser Soze Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description (last modified by Jakub Ś)

We are using a MindTouch implementation of CKEditor.

Follow these steps to reproduce the issue:

  1. Open the latest version of Google Chrome
  2. Create a new page
  3. Type three words into the header
  4. Highlight the words and set them as H1
  5. Type five words below your new header, making sure they are plain text
  6. Triple click the middle word in the header to highlight the whole line
  7. Press backspace
  8. Notice the plaintext below has now inherited the H1 styling

This does not happen in IE9.

Change History (3)

comment:1 Changed 8 years ago by Jakub Ś

Description: modified (diff)

comment:2 Changed 8 years ago by Piotrek Koszuliński

Status: newconfirmed

Triple click makes the following selection:


We use in this case the default algorithm which simply merges the 2nd block into the 1st one. This leaves:


We could improve this algorithm though, to handle this situation differently. If the first block is partially selected, then it could be removed and the second block could be maintained. But this leads to other questions. E.g. what should happen if the second block is also fully selected? I can see e.g. that Firefox leaves no block at all after that... This is a totally incorrect result.

comment:3 Changed 8 years ago by Jakub Ś

Please note that this is how Chrome handles it by default. If you try same thing in native contenteditable element you will get same result.

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