How to strip pasted content of background color, text color and standardize text size? #3453
-
There's gotta be some easy way to do this that I've missed. Pasting website's content into an editor usually comes with weird stylings, so I hope to make it look only one way when pasting into plate editor. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
One way would be to disable the HTML deserializers for the background colour and text colour plugins. I'm not sure of the exact syntax, but probably something like this. createBackgroundColorPlugin({
deserializeHtml: null,
}) |
Beta Was this translation helpful? Give feedback.
-
Also it'd be great if there's a way to just disable on pasting clipboard, and not fully |
Beta Was this translation helpful? Give feedback.
One way would be to disable the HTML deserializers for the background colour and text colour plugins.
I'm not sure of the exact syntax, but probably something like this.