Trumbowyg icon indicating copy to clipboard operation
Trumbowyg copied to clipboard

AllowTagsFromPaste - is it possible to keep tags but clean out attributes?

Open DanielMalmgren opened this issue 3 years ago • 2 comments

Hi. I'm allowing a bunch of tags using the AllowTagsFromPaste plugin, which is working brilliantly. However I've noticed that now I get loads of crap in my text. For example I want to allow h1 tags, but I dont want the class, style etc that comes with them. Is that in any way possible? If not, I guess this is a feature request :-)

DanielMalmgren avatar May 27 '21 07:05 DanielMalmgren

There is nothing to manage that today, and that's not so easy to match attributes than tags, but nothing is impossible :)

Alex-D avatar Jun 18 '21 18:06 Alex-D

The cleanpaste plugin has a few features to clean attributes, did you check that plugin?

tveimo avatar Oct 22 '21 05:10 tveimo