Opened 11 years ago
Last modified 11 years ago
#12094 confirmed Bug
Content Transformations strips span of style
Reported by: | Nathan Frost | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.1 |
Keywords: | Cc: |
Description
In CkE4 the advanced content filter will convert a span with a style that includes 'font-weight:bold' to a <strong> element.
Before Html:
<span style="color:#ffffff; font-weight:bold">First row</span>
After Html:
<strong>First row</strong>
The expected result:
<span style="color:#ffffff"><strong>First row</strong></span>
Change History (4)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.3 → 4.1 |
comment:3 Changed 11 years ago by
Currently there is no workaround for this issue.
You could disable ACF and leave spans as they are but I don't think this is what you want.
comment:4 Changed 11 years ago by
Actually, I was able to find a work around by allowing all styles for each of these: "strong em u s{*}"
This does cause other issues: these buttons no longer work, but at least you can paste the content in and keep it looking the same.
Problem can be reproduced from CKEditor 4.1 in all browsers. Looks like ACF transformations are too greedy in this case.