WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.1 Code/wysiwyg issue (5 posts)

  1. youngmicroserf
    Member
    Posted 7 years ago #

    Hi,

    strangely, in 2.1 the code displayed in the editor's "code view" doesn't match the code posted. Whenever I enter a <div class="xxx"></div> in code view it gets transformed into a <p class="xxx"> without closing bracket. Looking at the site's source code, the <div>s are still present. This is very confusing. Is there any way to disable the wysiwy editor entirely until this issue has been dealt with?

    Thanks!

    yms

  2. Samuel B
    moderator
    Posted 7 years ago #

    admin -> Users -> Your Profile
    Uncheck box at top left.

  3. youngmicroserf
    Member
    Posted 7 years ago #

    thanks samboll, cheers, that was fast :).

    And yes, without the visual editor the code is displayed correctly!

  4. silence226
    Member
    Posted 7 years ago #

    you may hack tiny_mce_config.php file in the following folder: /wordpress/wp-includes/js/tinymce

    about 24th line:

    $valid_elements = 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';

    delete p/-div[*],

    so it will never replace tag div by tag p

  5. Tdude
    Member
    Posted 7 years ago #

    OOOhh, kinky! I like that! Been messing with the TinyFiles and missed that. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic