title: CKEditor: Apply removeFormat on paste
body: <p>I have successfully managed to set up an on paste event to capture the HTML pasted into the text area as it is pasted.</p>
  
  <p>I need to automatically apply the removeFormat command to that HTML before or at the time it is pasted into the text area, so that I can strip it of classes, various tags, and other attributes. Could somebody point me in the right direction to apply the removeFormat command correctly?</p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>$(function(){
          $('textarea').ckeditor(
              function( textarea ){
                  var editor = this;
                  editor.on('paste', function( e ) { 
                      //alert(e.data.html); // This shows the HTML
                      editor.execCommand( 'removeFormat', e.data.html ); // Doesn't seem to do anything, HTML is pasted with the attributes intact
                      });              
              }
          )
      });
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>P.S. Force plain text option is not viable as there are some HTML elements I wish to keep (p,table and others).</p>