﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12903	Incorrect element wrapping when coreStyles_bold is configured to use divs	sarahjones		"Descriptive summary - 
Using the coreStyles_bold editor config option does not put the bold tag in the correct place and inserts the attributes (for bolding) on the wrong tag.

Steps to reproduce - 

1) Set editor configuration to include:

{{{
enterMode: CKEDITOR.ENTER_DIV,
coreStyles_bold: {
      element: 'div',
      attributes: { class: 'bold' }
    }
}}}
2) Open the editor
3) Type some text
4) Highlight part of the text (best seen if you highlight the middle of a word)
5) Click the editor bold button

For the Observed and Desired, the text is ""The is my bolded text"" where ""olde"" was the highlighted text when pressing the bold button

Observed: The whole line of text is bolded and the HTML looks like

{{{
<div class=""bold"">The is my bolded text</div>
}}}

Desired:
Only the highlighted text is bolded and the HTML looks like

{{{
<div>The is my b<div class=""bold"">olde</div>d text</div>
}}}


Browser and OS - 
OS X 10.9.3; Firefox 33.1 and Chrome 40.0.2214.93 (64-bit)

Screenshot - 
Please see attached

Sample data -
This bug is not correlated with specific data


Test case file - 
Please see https://github.com/sarahjones/ckeditor_bold_bug for an isolated setup.  Please see index.html (all customized config is there)

Build configuration -
This is using the 4.47 (ckeditor_4.4.7_9e2f4050d27c.zip) Standard package.


"	Bug	closed	Normal		General		invalid		
