Problem/Motivation

In CKEditor 4 we had the ACF - Advanced Content Filter, which filters incoming HTML content by transforming and removing elements, attributes, classes and styles that are not allowed. This could be disabled in order not to modify the HTML of a basic page, for example.

I am having difficulty doing this in CKEditor 5 because every time I insert an <i> tag for Font Awesome on a basic HTML page using the full HTML format, CKEditor 5 adds a parent <em> element.

This greatly impacts the CSS of my theme. How can I prevent and stop this? I want the editor to respect and not interfere with my HTML code.

All full HTML filter settings are following the Drupal default.

Thank you!

Comments

richetti created an issue. See original summary.

richetti’s picture

Issue summary: View changes
richetti’s picture

Issue summary: View changes
cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -CKEditor in core, -html, -full html filter
Related issues: +#3341280: <i> (iconfont icon) wrapped into <em> with "Full HTML"

This looks like a duplicate of #3341280: <i> (iconfont icon) wrapped into <em> with "Full HTML". Can you verify that please?

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I am closing this due to no activity.