Opened 15 years ago
Last modified 13 years ago
#6168 closed Bug
Multiple styles lost when changing coreStyles_underling to use <span> with inline style — at Version 2
Reported by: | Steven Wood | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.5 |
Component: | Core : Styles | Version: | 3.4 |
Keywords: | IBM | Cc: | Lynne Kues |
Description (last modified by )
I changed the editor configuration object so that instead of inserting a <u> for underline, it inserts a <span> with an inline style :
coreStyles_underline: { element: "span", attributes : {style: "text-decoration: underline"} }
This works great except that when you apply this to an element that has had e.g. it's font size increased, the "underline" span replaces the font size one, effectively losing that style.
To reproduce - create an editor with the configuration modified as above, enter some text, either change the font family or font size of the text, then underline the text.
Change History (3)
Changed 15 years ago by
Attachment: | autogrow.html added |
---|
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Component: | General → Core : Styles |
---|---|
Description: | modified (diff) |
Keywords: | IBM added; ibm removed |
Status: | new → pending |
I Confirmed this issue. Do You mean that it should work like this:
- <span style="font-size: 16px; text-decoration: underline ">
- This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.
</span>
Instead of:
- <span style="font-size: 16px; ">
- <span style="text-decoration: underline">
- This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.
</span>
</span>
Attached modified version of the "autogrow" sample provided with the editor to show the problem.