WordPress.org

Ready to get started?Download WordPress

Forums

HTML filter? (9 posts)

  1. electroniques
    Member
    Posted 6 years ago #

    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

  2. Chris_K
    Member
    Posted 6 years ago #

    Turn off the WYSIWYG completely and try again.

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

  3. electroniques
    Member
    Posted 6 years ago #

    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??

  4. Chris_K
    Member
    Posted 6 years ago #

    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?

  5. electroniques
    Member
    Posted 6 years ago #

    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!

  6. Chris_K
    Member
    Posted 6 years ago #

    I think you're wrestling with "wpautop".

    Have a look here: http://wordpress.org/support/topic/103621?replies=8#post-509836

  7. Chris_K
    Member
    Posted 6 years ago #

    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.

  8. electroniques
    Member
    Posted 6 years ago #

    Seems like other people are having that problem as well:
    http://wordpress.org/support/topic/107174?replies=7

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

  9. electroniques
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic