Trumbowyg icon indicating copy to clipboard operation
Trumbowyg copied to clipboard

allowTagsFromPaste deprecated tags

Open DeveloperSlope3 opened this issue 4 years ago • 0 comments

I'm using Trumbowyg 2.23.0 and when I copy a text from Word and paste into my trumbowyg usin the allowTagsFromPaste plugin the font tag remains althought is not in allowedTags.

Font tag is deprecated in HTML5, but Word remains using it to style in cut & paste, so the font style remains.

I solved it adding all the complete removableTags on the configuration of the plugin and adding "font" to the list (I want to remove all of them and font)

I think deprecated HTML tags should be on removableTags by default, because Word is still using them

Thanks a lot

DeveloperSlope3 avatar Feb 17 '21 16:02 DeveloperSlope3