Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button/Paste removes all tags no matter what

See original GitHub issue

First 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.

            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:closed
  • Created 6 years ago
  • Comments:15

github_iconTop GitHub Comments

Prinmodecommented, Mar 18, 2018

Same here, using the 0.8.9 version

garthgoodsoncommented, Jun 27, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found