Closed rturella3 closed 3 hours ago
Issue confirmed. CKEditor should not populate the editor's content with such data. It should be stripped unless GHS is configured to preserve it.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).
π Provide detailed reproduction steps (if any)
Open an Excel file in https://onedrive.live.com/, insert some text and copy the table.
Paste in a ckeditor (like https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-office.html#demo)
The pasted content contains some text and then the table that was copied first.
βοΈ Expected result
The extra text is not present.
β Actual result
The pasted content contains some text and then the table that was copied first.
β Possible solution
Since the extra text looks like css from a
style
tag, I was able to fix by including the General HTML Support plugin by allowingstyle
tags:Also, this behavior may be considered the correct behavior, because CKeditor is originally blocking the insertion of a disalowed tag and converting its content to plain text. If that is the case, then it would be nice to have documented in the documentation and how to prevent with the General HTML Support plugin.
π Other details