• Hey.

    I have a problem with creating static pages.
    I want to inser te following code:

    <table style="text-align: left; width: 100%;" border="0"
     cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"><img style="width: 50px; height: 50px;"
     alt=""
     src="http://www.mac-spot.de/content/wp-content/uploads/2007/09/firefox_icon.gif"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined">Firefox<br>
          <br>
    Testestest<br>
    Test<br>
    Test<br>
          <br>
    Homepage | Download</td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"><img style="width: 48px; height: 51px;"
     alt=""
     src="http://www.mac-spot.de/content/wp-content/uploads/2007/09/icon_camino.png"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined">Camino<br>
          <br>
    Test<br>
    Test<br>
    Test<br>
          <br>
    Homepage | Download</td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"><img style="width: 48px; height: 48px;"
     alt=""
     src="http://www.mac-spot.de/content/wp-content/uploads/2007/09/thunderbird_icon.jpg"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined">Thunderbird<br>
          <br>
    Test<br>
    Test<br>
    Test<br>
          <br>
    Homepage | Download</td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined"></td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined"></td>
        </tr>
        <tr>
          <td style="width: 150px; text-align: center;"
     valign="undefined"></td>
          <td style="width: 1151px; text-align: left;"
     valign="undefined"></td>
        </tr>
      </tbody>
    </table>

    The sourcecode was created by NVU and I wanted to paste it into the TinyMCE editor in WordPress. Unfortunately it somehow messes up the source code and when I open the (static) page in the browser, this is what happens:

    LINK

    Is there some kind of HTML filtering going on or why does it mess up the source code? I pasted the html source under the “code” tab, but it seems like it doesn’t save the code, but alter it and that’s how things become messed up.
    Can I somehow deactivate this filter?

    Thanks in advance for any help or clues

    Regards

    Florian

Viewing 8 replies - 1 through 8 (of 8 total)
  • Turn off the WYSIWYG completely and try again.

    Users -> Your Profile, uncheck the top checkbox and save.

    Thread Starter electroniques

    (@electroniques)

    Hey.

    I just tried that but unfortunately it didn’t work.
    Seems like TinyMCE really messes things up. The weird thing is that even if I create the tables WITH TinyMCE…once I save it things get messed up.

    Any ideas what could be the problem??

    If you did what I suggested, there was absolutely no tinyMCE in the equation.

    Uncheck that top checkbox. Now when at the post/page editor, there’s no tabs, right?

    Thread Starter electroniques

    (@electroniques)

    Hey.

    You are right. I just turned off TinyMCE and just pasted the HTML source straight into the “Code” Tab (the other ones is of course gone now) but I still have the same problem.

    Is there some sort of html code filtering going on? I really have no idea what else it could be.

    Thanks for any help or clues!

    I think you’re wrestling with “wpautop”.

    Have a look here: http://ww.wp.xz.cn/support/topic/103621?replies=8#post-509836

    Actually, what would be even easier…

    Create your own Page template (see that section at Pages) and include your table code directly into the template.

    Thread Starter electroniques

    (@electroniques)

    Seems like other people are having that problem as well:
    http://ww.wp.xz.cn/support/topic/107174?replies=7

    Does the “wpautop” fix take care of this or is this a different problem?

    Thread Starter electroniques

    (@electroniques)

    Ok, seems like it is a TinyMCE problem after all.
    I just replaced TinyMCE with FCKEditor
    and this seems to work just fine now.

    In both visual and sourcode view.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘HTML filter?’ is closed to new replies.