How would one modify the filtering Gutenberg applies to pasted content?

When pasting content from outside of Gutenberg (e.g. Google Docs) into Gutenberg some formatting is lost. Gutenberg retains HTML (semantic) elements but drops styling by CSS, etc. This means colors, alignment and other similar properties are not transferred into Gutenberg.

I know there are plugins, etc. for converting Google Docs to WP friendly content but I’m not interested in those. Instead I’m looking for where in Gutenberg the filtering of pastes is occurring and whether there is a way (without modifying Gutenberg core code, e.g., a filter) to modify this behavior.

Read more here:: How would one modify the filtering Gutenberg applies to pasted content?

Leave a Reply

Your email address will not be published. Required fields are marked *