CKEditor removes the "style" attribute

Created on 23 June 2015, over 9 years ago
Updated 2 May 2023, over 1 year ago

Hello, i'm using wysiwyg with CKEditor (4.4.1). Images attributes (width, height, style, ...) are correctly set in the editor's dialogue window and in the preview, but then, after saving the content, they are missing and the image always displays in its original size.

Reading around, i found out that this could be caused by the advanced content filter (ACF) in CKEditor > 4.1, then i tried disabling ACF in the wysiwyg profile's configuration, and also setting "config.allowedContent = true;" in CKEditor config.js file, but the issue is still here.
Any hint? Thanks.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇹Italy haunted

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States jenlampton

    Just adding another reminder here that applying the latest patch would also be introducing a security risk for your site. Use with caution.

Production build 0.71.5 2024