WordPress.org

Ready to get started?Download WordPress

Forums

This needs to be fixed in the next release! (2 posts)

  1. sketchbob
    Member
    Posted 7 years ago #

    After farting around with this for hours, I've come up with a fix for what is obviously a bug. Hopefully, it will make it's way into the next release.

    I have no idea how to get this information to the developers in a proper way so this is my only outlet.

    If someone will direct me, I'll post it in the proper place so the developers can be aware...

    THE PROBLEM:
    WP 2.1.1
    Rich Text Editor
    One can not enter multiple line feeds without having them removed automatically by the RTE. This is bogus. All users (typically end users not familiar with HTML) expect the ability to muck up their page with excessive line feeds as desired and should be allowed to so so. :-)

    The fix I've found works but may not be "proper" so the WP team needs to address this formally.

    THE FIX:
    I could not get this to work in 2.1, only in 2.1.1.
    I thingk the developers addressed the issue partially by fixing the standard editor but did not address the same problem in the RTE.

    In the file wp-includes\js\tinymce\tiny_mce_config.php at line 24
    change like so:

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

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

  2. drmike
    Member
    Posted 7 years ago #

    I would suggest opening up a ticket.

    http://trac.wordpress.org

Topic Closed

This topic has been closed to new replies.

About this Topic