Clean paste plugin

Basic usage

Clean paste plugin handle paste events, clean the HTML code before insert content into the editor.

Read clean paste plugin documentation

Try to paste something from Microsoft Word or something!

Then, check the markup. Should be cleaner than original.

The code


$('#editor').trumbowyg();
            

Setup

In head tag


            

At the end of body


<!-- Import jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>