﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11346	Formatting lost when applied to highlighted section, cursor placed at end of line, then the same formatting option toggled again	cjarczew		"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:[[BR]]
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:**[[BR]]
In Enter Div and P Whole line gets unbolded[[BR]]
In Enter BR whole text gets unbolded"	Bug	confirmed	Normal		Core : Styles	3.6.3		Firefox IE11	
