Feb 142014

Have you ever had one of those annoying editors you consistently pastes pre-formatted stuff – like HTML lifted from a web page, or text from Word – straight into the visual editor, without using the paste-as-text button? Well I have, and I got fed up with having to sort out the messed up HTML. I decided that the best way to deal with it was to change the paste-as-text button back to a toggle, so I added the following snippet to my child theme’s functions.php

Basically, all this does is remove the dialogue box that would normally pop up when the button was clicked, and then turns the paste-as-text button into a  “sticky” toggle (ie. you have to click it toggle it on/off), with its initial state being On.


For TinyMCE4 (as of WordPress 3.9) the code has changed…


 Posted by at 3:56 pm

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">