Skip to content

Make the CKEditor GeneralHtmlSupport allow list configurable (rel-11_0 backport, #5897) - #5901

Open
Lucsaan wants to merge 2 commits into
RotherOSS:rel-11_0from
Lucsaan:issue-#5897-richtext-htmlsupport-config-rel-11_0
Open

Make the CKEditor GeneralHtmlSupport allow list configurable (rel-11_0 backport, #5897)#5901
Lucsaan wants to merge 2 commits into
RotherOSS:rel-11_0from
Lucsaan:issue-#5897-richtext-htmlsupport-config-rel-11_0

Conversation

@Lucsaan

@Lucsaan Lucsaan commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Backport of #5900 to rel-11_0 — see #5897 for the full rationale.

Summary

Moves the hardcoded htmlSupport allow list (span, cite, style, table) from Core.UI.RichTextEditor.js into the new SysConfig settings Frontend::RichText::HtmlSupportAllowedElements / CustomerFrontend::RichText::HtmlSupportAllowedElements. Defaults keep the current behavior; administrators can extend the list (e.g. add img so image border styles survive) without code changes.

Identical change as the rel-11_1 PR, re-applied on top of rel-11_0 (the surrounding Frontend::CKEditorPlugins / Frontend::EnhancedCKEditorToolbar settings do not exist here, the new settings are placed after Frontend::RichText::EnhancedMode::Customer).

luc added 2 commits July 21, 2026 14:15
The htmlSupport allow list was hardcoded in Core.UI.RichTextEditor.js
(span, cite, style, table). Everything else loses attributes, classes and
inline styles that no active editor feature handles — for example a border
style on an image is silently stripped, with no way to change that from
the outside.

Move the element list to the new SysConfig settings
Frontend::RichText::HtmlSupportAllowedElements and
CustomerFrontend::RichText::HtmlSupportAllowedElements (default keeps the
current behavior) and pass it to the editor via the RichText JS data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant