Opened 10 years ago

Last modified 10 years ago

#10801 confirmed Bug

enterMode BR - selecting one bold line and 'un-bold' it, makes the previous entered text 'un-bold'

Reported by: vosmanz Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.5
Keywords: Blink Cc:


Sorry for the title, i don't really know how to explain it in one sentence (also, English is not my main language)

I found a problem in CKEditor where bold text that's not selected is influenced by an action on a text that is selected. It's pretty hard to describe, so let's just give an example:

  • Open the 'enterkey.html' example from CKEditor (link below)
  • Set enter mode and shift-enter mode both to BR.
  • Empty the text area
  • Click 'Bold' button
  • Type one line of random text (hit enter key)
  • Type another line of random text (DON'T hit enter key)
  • Select the second line you just typed with your mouse
  • Click 'Bold' button to remove the bold from the last line

Result: Bold is removed from line 1 + 2 Expected result: Bold is removed from selected line 2 only

Same problem occurs for other layout options, such as italic and underline.

When you hit the enter key after line 2, and then select line 2, it works fine and only line 2 is changed. Also, when you select the 2nd line with your keyboard (shift+home for example) it works fine too.

Browser/OS: I think the bug is Chrome (or webkit?) specific. The problem occurs in latest stable version of Chrome in Windows 7 + 8.

Also tested in updated stable versions of IE 10 and FireFox in Win7+8, but there it works as expected.

Tested in 'latest' and 'nightly':

I hope the explanation is sufficient.

Change History (2)

comment:1 Changed 10 years ago by Jakub Ś

Keywords: Blink added
Status: newconfirmed
Version: 3.6.5

Problem can be reproduced in Blink from CKEditor 3.6.5 rev. [7633]. It occurs also in CKE 4.x (v4).

This issue is in fact duplicate of #9996 (same revision) but I'm lieaving it open as it contains IMHO more serious TC.

comment:2 Changed 10 years ago by Jakub Ś

It seems we have whole buch of issues basic styles and selection problem across all browsers:

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