Forums

Disable wysiwg in WP? (2 posts)

  1. tactics
    Member
    Posted 5 years ago #

    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?

  2. tactics
    Member
    Posted 5 years ago #

    Oh, and I figured I should say this premptively: Yes, I turned off the rich text editor and correct invalid xhtml options. it had no effect. WP is still adding break tags where I don't want them, and changing my ampersand signs.

    I read the thread about wp inserting extra paragraph tags and someone suggested the "Disable autop" plugin. Will that plugin solve my problems as well?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags