Deactivate Visual Editor – WordPress

ri craft, technology

I just recently had a client that needed a sniffing javascript to serve up an iPad version of their cinematography. While this was easily added in the WYSIWYG editor within wordpress, if you hit the “visual” tab, Poof! The javascript would become broken in a strange enough way that required too much debugging. Instead of leaving a possible trap to our clients, we needed a solution: A great plugin to deactivate the visual editor when editing specific pages or posts within wordpress.

The visual editor is nice when pages and posts are simple, but when you try to add special text such as php code to a page then the visual editor oftentimes has to be deactivated to edit the page. This plug-in allows you to set which posts should not use the visual editor by setting a custom field ‘deactivate_visual_editor’ to true. This allows the visual editor to be deactivated for the given post/page, but remain active for all others.