Styles are lost on sub-lists when converting from numbered list to bulleted list and vice versa
To Reproduce:
- Copy the following content into the Source view of the editor. This is just a numbered list with 3 different levels. Each level has a font-size defined:
<ol style="font-size:20px;">
<li>
List 1</li>
<li>
List 1
<ol style="font-size:16px;">
<li>
List 2</li>
<li>
List 2
<ol style="font-size:12px;">
<li>
List3</li>
</ol>
</li>
</ol>
</li>
<li>
List 1</li>
</ol>
- Return to wysiwyg mode and select the entire editor contents.
- Click the Bulleted List icon in the toolbar to convert the list to a bulleted list.
Problem: The font styling for the sub-lists are lost. The font-size style for each sub-list is overwritten with the value from the top-level list:
<ul style="font-size: 20px;">
<li>
List 1</li>
<li>
List 1
<ul style="font-size: 20px;">
<li>
List 2</li>
<li>
List 2
<ul style="font-size: 20px;">
<li>
List3</li>
</ul>
</li>
</ul>
</li>
<li>
List 1</li>
</ul>
The styling for the sub-lists should be preserved. This also occurs when converting from bulleted lists to numbered lists.
This particular TC has been reproducible from CKEditor 3.3.2.
From CKE 3.0 till CKE 3.0.1 only style on top-level list was lost.
From CKE 3.0.2 till 3.3.1 all styles were lost.