Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CKEditor doesn't strip tags when pasting from Word #17949

Closed
CreateSean opened this issue Feb 18, 2025 · 1 comment
Closed

CKEditor doesn't strip tags when pasting from Word #17949

CreateSean opened this issue Feb 18, 2025 · 1 comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.

Comments

@CreateSean
Copy link

Image

πŸ“ Provide detailed reproduction steps (if any)

  1. paste from word doc
  2. save
  3. word tags not stripped

βœ”οΈ Expected result

all tags striped except for bold italic and links.

What is the expected result of the above steps?

❌ Actual result

No tags are stripped

πŸ“ƒ Other details

Am using the CKEditor pluging with Craft CMS which has the paste from word plugin enabled by default. I first went through Craft support but they directed me here with the following statement.

I just had a chat with the team about this and it falls down under the CKEditor paste from office plugin.

  • Browser: all
  • OS: All
  • First affected CKEditor version4.4.0
  • Installed CKEditor plugins: paste from office

If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

@CreateSean CreateSean added the type:bug This issue reports a buggy (incorrect) behavior. label Feb 18, 2025
@Witoso
Copy link
Member

Witoso commented Feb 19, 2025

Hey, the editor will accept everything it's configured to accept. Either via plugins enabled or configuration specified.

Most likely, your configuration has a General HTML Support plugin, with a quite loose configuration. You can test how different plugin setups affect the editor in the Builder.

@Witoso Witoso closed this as completed Feb 19, 2025
@Witoso Witoso added the resolution:resolved This issue was already resolved (e.g. by another ticket). label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

2 participants