Forums

WordPress 2.9 dashboard html editor inserting <p> tags (9 posts)

  1. Dakota XT
    Member
    Posted 2 years ago #

    When I type code into the html editor and update the page, the html does not display correctly. When I look at the html source code via 'view source' in the browser, <p> tags have been inserted around the code.

  2. chaplain@anglican.cz
    Member
    Posted 2 years ago #

    I have the same/similar problem following upgrade to 2.9. I posted a query about it 15 hours ago but no response yet.

  3. mediabaron
    Member
    Posted 2 years ago #

    Someone in the WooThemes.com forum said WordPress upgraded TinyMCE which is the editor in WP 2.9 and that may be the problem.

    I'm having the same problem. Switching between Visual and HTML messes things up and leaves difficult to edit HTML text.

    One partial work-around is to be in Visual mode, copy the text you want, then go to HTML mode and paste it in over where you want it. This will clean things up a little.

    Need 2.9.1 to be pushed out with the editor fix.

  4. 1800pocketpc
    Member
    Posted 2 years ago #

    Same issue here. And it at times switches to an earlier auto draft when you try and publish the post.

  5. mediabaron
    Member
    Posted 2 years ago #

    I think I may have found the solution. My problem turned out to be using Safari on Mac with WordPress 2.9.

    To solve the problem I believe it may have been Google Gears messing things up.
    Go to Safari>Google Gears Settings
    and wipe out any WordPress setting in there.

    Also I closed my Safari windows (for Windows users you probably have to just open a blank page). Empty your cache.

    I also went into my Library subdirectories and wiped-out any cached Safari pages.

    Try the Gears trick first.

  6. LucasMS
    Member
    Posted 2 years ago #

    I dont think this is related to TinyMCE, since all previous posts I published are being affect by this issue (I didn't edited them, so they still the same in database).

  7. LucasMS
    Member
    Posted 2 years ago #

    I FOUND the solution ...
    Edit wp-includes/default-filters.php

    line 110, change from:
    add_filter( 'the_content', 'wpautop');

    to

    add_filter( 'the_content', 'wpautop', 0);

  8. thetooon
    Member
    Posted 2 years ago #

    One more solution without touching WP core is to try WP Unformatted plugin.

  9. Brianair
    Member
    Posted 2 years ago #

    When using the HTML editor to force a line break or BR or P and carriages returns, the WordPress wpautop filter will ignore

    <br clear="none" />

    That's pretty easy wpautop relief!

Topic Closed

This topic has been closed to new replies.

About this Topic