Skip to content

How to strip pasted content of background color, text color and standardize text size? #3453

Answered by 12joan
trancethehuman asked this question in Q&A
Discussion options

You must be logged in to vote

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,
})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@trancethehuman
Comment options

Answer selected by zbeyens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants