Disable wysiwg in WP?
-
I’m wondering if there is a way to completely turn off wysiwyg in wordpress (preferable temporarily). I’m trying to enter a block of code into the page editor that looks similar to this:
<div id=”flashIntro”>
var FU = { movie:”flash/flvplayer.swf”,width:”755″,height:”355″,majorversion:”7″,build:”0″,bgcolor:”#000000″,allowfullscreen:”true”,flashvars:”frontcolor=0xCCCCCC&file=../media/video/home/01.flv&autostart=true&displayheight=355&overstretch=true” };
UFO.create(FU, “player2”);
</div>The problem is that WordPress is changing all of my ampersands to “ampersand#38;” when i save the page and it’s breaking the code.
My solution was to create a template and just insert the code directly into it, rather than in the editor. But that creates a new problem; WordPress thinks that if I don’t enter any content into the editor for a particular page, it should drop a break tag in there.
How can I make it so that anything I enter into the editor renders EXACTLY how I enter it without WordPress changing it?
- The topic ‘Disable wysiwg in WP?’ is closed to new replies.