This sample demonstrates the Block Editor pasteCleanupSettings property allows you to define various options to control how content is pasted into the editor.
The following settings are available to cleanup the content in pasteCleanup settings property:
Format Option drop down list for the paste content.Plain Text option to paste the content as plain text.Keep Format option to keep the same format in the copied content.denied tags text box to ignore the tags when pasting HTML content.['a[!href]'] - paste the content by filtering anchor tags that don’t have the 'href' attribute.['a[href, target]'] - paste the content by filtering anchor tags that have the 'href' and 'target' attributesallowed style properties to paste the content by accepting these style attributes and removing other attributes. For example:['color', 'margin'] - This will allow only the style properties 'color' and 'margin' in each pasted element.