Opened 10 years ago

Last modified 10 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 10 years ago by Jakub Ś

Status: newconfirmed
Version: 4.34.1

Problem can be reproduced from CKEditor 4.1 in all browsers. Looks like ACF transformations are too greedy in this case.

comment:2 Changed 10 years ago by Nathan Frost

Is there a work around for this?

comment:3 Changed 10 years ago by Jakub Ś

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 10 years ago by Nathan Frost

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy