Button/Paste removes all tags no matter what
See original GitHub issueFirst off, great plugin for summernote! It’s definitely exactly what I was looking for. The only thing I’m encountering is that it’s cleaning all tags even with keepHTML: true
and any tags in keepOnlyTags
doesn’t matter.
This is how I’m currently initializing it.
cleaner:{
action: 'both',
newline: '<p><br></p>', // Summernote's default is to use '<p><br></p>',
notStyle: 'position:absolute;top:0;left:0;right:0',
icon: '<i class="far fa-eraser"></i>',
keepHtml: true,
keepOnlyTags: ['<p>', '<b>', '<span>', '<br>', '<ul>', '<li>', '<strong>','<i>', '<a>'],
keepClasses: false,
badTags: ['style', 'script', 'applet', 'embed', 'noframes', 'noscript', 'html'],
badAttributes: ['style', 'start']
}
Any thoughts? thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:15
Top Results From Across the Web
Removing all tags : r/DestinyItemManager - Reddit
I have tags all over the place and a full vault and really don't want to remove all the tags by hand if...
Read more >How can I turn off "middle mouse button paste" functionality in ...
This solution will work globally and preserve the middle mouse functionality under Xorg. Install xbindkeys xsel xdotool. Place this in ~/.xbindkeysrc
Read more >How do I disable middle mouse button click paste? - Ask Ubuntu
I use gnome-tweak-tool for disabling middle button paste in Ubuntu 16.04. Install it sudo apt install gnome-tweak-tool.
Read more >Disboard Support Server - Olio Delle Grottaglie
If you're typing the tag it correctly and it's still not appearing, ... server development We help all servers around, no matter what...
Read more >Disboard Support Server
botlink in Server and here (http://bit. they refused to remove said content ... development We help all servers around, no matter what they...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here, using the 0.8.9 version
Try replacing ‘Text’ with ‘text/html’ around line 162 where the data is copied from the clipboard. It seems that using Text strips html prior to the cleaner cleaning the text.