plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function() {
      var that = this,
          oldHtml,
          cleanHtml;

      if (wysihtml5.browser.supportsModenPaste()) {
        this.on("paste:composer", function(event) {
          event.preventDefault();
          oldHtml = wysihtml5.dom.getPastedHtml(event);
          if (oldHtml) {
            that._cleanAndPaste(oldHtml);
          }
        });

      } else {
        this.on("beforepaste:composer", function(event) {
          event.preventDefault();
          wysihtml5.dom.getPastedHtmlWithDiv(that.composer, function(pastedHTML) {
            if (pastedHTML) {
              that._cleanAndPaste(pastedHTML);
            }
          });
        });

      }
    }
function() {
      var that = this,
          oldHtml,
          cleanHtml;

      if (wysihtml5.browser.supportsModenPaste()) {
        this.on("paste:composer", function(event) {
          event.preventDefault();
          oldHtml = wysihtml5.dom.getPastedHtml(event);
          if (oldHtml) {
            that._cleanAndPaste(oldHtml);
          }
        });

      } else {
        this.on("beforepaste:composer", function(event) {
          event.preventDefault();
          wysihtml5.dom.getPastedHtmlWithDiv(that.composer, function(pastedHTML) {
            if (pastedHTML) {
              that._cleanAndPaste(pastedHTML);
            }
          });
        });

      }
    }
function ( ) { var that = this , oldHtml , cleanHtml ; if ( wysihtml5 . browser . supportsModenPaste ( ) ) { this . on ( "paste:composer" , function ( event ) { event . preventDefault ( ) ; oldHtml = wysihtml5 . dom . getPastedHtml ( event ) ; if ( oldHtml ) { that . _cleanAndPaste ( oldHtml ) ; } } ) ; } else { this . on ( "beforepaste:composer" , function ( event ) { event . preventDefault ( ) ; wysihtml5 . dom . getPastedHtmlWithDiv ( that . composer , function ( pastedHTML ) { if ( pastedHTML ) { that . _cleanAndPaste ( pastedHTML ) ; } } ) ; } ) ; } }
Prepare html parser logic
- Observes for paste and drop
Prepare html parser logic - Observes for paste and drop