Prevent defined styles from "leaking" into the allowed HTML tags

Created on 24 April 2024, 8 months ago

Problem/Motivation

If styles are defined via this module, and then you go to edit a text format and save it, the styles will be automatically added to the "allowed html tags" from the "Limit allowed HTML tags and correct faulty HTML" filter's config. This module dynamically modifies that config as needed to add them, it shouldn't add them to the actual stored config for the text format.

This is only a problem for text formats that use CKEditor 5 as an editor. Things changed there so that the "Limit allowed HTML tags and correct faulty HTML" filter is automatically configured based on the enabled editor plugins. It's not possible to manually edit it.

Steps to reproduce

Proposed resolution

Not really sure. The only workaround I know of is to manually edit the "Limit allowed HTML tags and correct faulty HTML" config after the text format was saved to remove the stuff that was added from the defined CKEditor Standalone Styles.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024