Skip to content

Investigate how we can reduce the amount of CSS garbage when people paste from word into ckeditor #5560

Closed
@ThiefMaster

Description

@ThiefMaster

We currently allow all css in the editor, because using a whitelist has the annoying side-effect of REMOVING styles that are already where or that have been manually added in source mode.

However, this also has the very annoying side-effect that pasting from Outlook, Word and similar tools (basically anything that exposes HTML/Richtext to the clipboard) has a LOT of extremely ugly CSS which we don't really want.

Maybe there's some way to apply stronger sanitization rules on pasted content in ckeditor5? Or some way to manually run code on paste where we could clean this up?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions