Remove HTML element when pasting from Word I am pasting a GDoc content using "paste from word" button on the ckeditor (4.5.4) and I want to remove the extra span with style associated with links in the text (so that it uses my theme css).
Here is how a link is styled after pasting to ckeditor:   

&lt;a href="http://en.wikipedia.org/wiki/Neil_Armstrong" style="text-decoration:none;"&gt;
   &lt;span style="text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;"&gt;
     &lt;span style="color:#1155cc;"&gt;
       &lt;span style="font-family:arial;"&gt;
         &lt;span style="font-size:14.6667px;"&gt;Neil Armstrong&lt;/span&gt;
       &lt;/span&gt;
     &lt;/span&gt;
   &lt;/span&gt;
&lt;/a&gt;


I want it to be just     

&lt;a href="http://en.wikipedia.org/wiki/Neil_Armstrong" style="text-decoration:none;"&gt;Neil Armstrong&lt;/a&gt;   


I tried in ckeditor profile under Advanced options:
  

config.allowedContent = true;
config.disallowedContent = 'span {color, font*, text-decoration}';     


This is not working!
Hi You can use https://www.drupal.org/project/wysiwyg_filter
and configure him in /admin/config/content/ckeditor , content types