Replies: 1 comment
-
|
Hi, thanks for getting in touch! Do you have any options selected in your CKEditor Config under “Heading levels”? In general, CKEditor only allows the markup that’s allowed via the field’s config (enabled features, plugins, and Config Options); however, when it comes to allowing/restricting markup, the features and plugins will take precedence over FWIW, I just tested your snippet, and if I deselect all the heading options, then when pasting content, all headings get removed on paste. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Is it possible to only allow certain HTML tags when copying and pasting?
I don't want to allow anything that isn't possible via the editor's toolbar.
With Redactor, you could set this in the configuration.
I have already looked at general HTML support and tried to adjust the configuration accordingly, but somehow it doesn't seem to have any effect. Maybe I don't understand how the plugin works.
For example, I only have the strong and link buttons in the toolbar and my configuration looks like this:
I would now expect that when I copy text with an h1 into it, the h1 would be removed. However, this is not the case.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions