Opened 5 years ago

Last modified 3 years ago

#11346 confirmed Bug

Formatting lost when applied to highlighted section, cursor placed at end of line, then the same formatting option toggled again

Reported by: cjarczew Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.6.3
Keywords: Firefox IE11 Cc:

Description (last modified by Jakub Ś)

Hard to describe and hard to search for so my apologies if it's already been logged but I think even if it's been logged I've found more details I will explain below.

If I highlight a section of text and apply some sort of text formatting(bold for example). Then place the cursor at the end of one of those newly bolded lines and click bold again to remove it so I can continue typing in non-bold it will remove bold from the entire line.

Browser: FF 25.0, IE9.0.8112.16421(config.enterMode = CKEDITOR.ENTER_BR only for IE)

OS: Win 7

Reproducible location: Demo site

I tested with Chrome 31.0.1650.63 m as well and it worked properly. Also ctrl+a vs using the mouse can have slightly different results which I will explain after the steps to reproduce.

Steps to reproduce:

  1. Download the standard ckeditor from the website.(Only necessary if you want to test CKEDITOR.ENTER_BR. Otherwise just go to the demo)
  2. Open replacebycode.html sample and clear the content
  3. Type aaaa aaaa, hit enter. Type bbbb bbbb, hit enter. Type cccc cccc, hit enter.
  4. Press Ctrl+A and click Bold
  5. Place the cursor at the end of any of the three lines
  6. Press Bold again

If Using IE or FF and using CKEDITOR.ENTER_BR you will notice that the entire highlighted content will lose the bold formatting. If using FF and CKEDITOR.ENTER_P (Default) you will notice that just the line you placed the cursor on will lose bold. I did NOT test CKEDITOR.ENTER_DIV.

The slight variation I mentioned between ctrl+a and using the mouse can be tested by repeating all the steps above but step 4 use the mouse to highlight everything instead and step 5 place the cursor at the end of the "cccc cccc" line. In FF bold is already de-selected from the toolbar, in IE it's still selected but when you click it formatting isn't lost. If you test lines 1 or 2 you will see the same results as if you tested with ctrl+a.


EDIT:

Reproducible in Firefox and IE11

To reproduce:

  1. Type three lines of text
  2. Ctrl+A, hit Bold Button
  3. Click at the end of any line and Hti bold Button again

Results:
In Enter Div and P Whole line gets unbolded
In Enter BR whole text gets unbolded

Change History (4)

comment:1 Changed 5 years ago by cjarczew

Just a clarification on the line I wrote "If Using IE or FF and using CKEDITOR.ENTER_BR you will notice that the entire highlighted content" highlighted shouldn't be there. Nothing should be highlighted when you place your cursor at the end of a line

comment:2 Changed 5 years ago by Jakub Ś

Description: modified (diff)
Keywords: Firefox IE11 added
Status: newconfirmed
Version: 3.6.3

Problem can be reproduced from CKEditor 3.6.3 rev. [7392] in Firefox and IE11.

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

comment:3 Changed 4 years ago by Piotrek Koszuliński

Component: GeneralCore : Styles

comment:4 Changed 3 years ago by kkrzton

Still broken in FF 43.0, IE10, IE11 and CKEditor 4.5.6.

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