CKEditor5 - how to retain inline syles?

Created on 29 December 2023, about 1 year ago
Updated 13 February 2024, 12 months ago

I am upgrading a site from D9 to D10 and thus upgrading from CKEditor4 to CKEditor5. Over time, front end developers have added small custom style definitions in the WYSIWYG areas all over the site. I know it's not ideal, but at this point I need to support these instances. I can't figure out how to get the settings for CKEditor5 right. In the text format full_html I have enabled most buttons, which added the

tag in the read only "Allowed HTML tags" field, but it still strips out tags when I try to add the following:
<style>
.partner:not(.partner--sd-concierge) img {
      filter: invert(100%) grayscale(100%) contrast(100%);
    }
</style>
Any help on how to proceed would be greatly appreciated.
💬 Support request
Status

Closed: duplicate

Version

10.2

Component
CKEditor 5 

Last updated about 7 hours ago

Created by

🇺🇸United States summerg

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

Comments & Activities

Production build 0.71.5 2024