Opened 11 years ago
Last modified 9 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 )
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:
- Download the standard ckeditor from the website.(Only necessary if you want to test CKEDITOR.ENTER_BR. Otherwise just go to the demo)
- Open replacebycode.html sample and clear the content
- Type aaaa aaaa, hit enter. Type bbbb bbbb, hit enter. Type cccc cccc, hit enter.
- Press Ctrl+A and click Bold
- Place the cursor at the end of any of the three lines
- 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:
- Type three lines of text
- Ctrl+A, hit Bold Button
- 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 11 years ago by
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|---|
Keywords: | Firefox IE11 added |
Status: | new → confirmed |
Version: | → 3.6.3 |
comment:3 Changed 10 years ago by
Component: | General → Core : Styles |
---|
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