WordPress.org

Ready to get started?Download WordPress

Forums

Admin editor REMOVING ALL LINE BREAKS on save (3 posts)

  1. toimisto
    Member
    Posted 2 years ago #

    EVERY LINE BREAK IS REMOVED FROM ADMIN EDITOR AFTER SAVE?!

    Started just now and problem with every browser and latest versions

  2. toimisto
    Member
    Posted 2 years ago #

    function cbnet_tinymce_config( $init ) {

    // Don't remove line breaks
    $init['remove_linebreaks'] = false;
    // Convert newline characters to BR tags
    $init['convert_newlines_to_brs'] = true;
    // Do not remove redundant BR tags
    $init['remove_redundant_brs'] = false;

    // Pass $init back to WordPress
    return $init;
    }
    add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');

    = Solution. Although no idea why needed

  3. snurk
    Member
    Posted 2 years ago #

    In wp-config.php ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.