Override Style Attribute Exclusion for Trusted Roles

Created on 19 July 2023, over 1 year ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

I've come across several issues describing why the style attribute (inline styles) are not allowed by the "Limit allowed HTML tags and correct faulty HTML" filter. I can understand why the default function of this filter is to exclude them. However, disabling this filter allows us to use the style attribute, but it also makes it very difficult to paste content from Word, which is a big (inescapable) part of our workflow.

Can anyone suggest a way to make CKEditor strip out Word HTML, AND allow us to use style attributes in some or all tags for privileged (trusted) users? I'm working on a site that doesn't allow comments at all, and the only accounts that have editing permission are highly trusted and privileged individuals.

💬 Support request
Status

Fixed

Version

9.5

Component
CKEditor 5 

Last updated about 15 hours ago

Created by

🇺🇸United States safetypin Memphis, Tennessee

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

Comments & Activities

Production build 0.71.5 2024