Support » Fixing WordPress » Admin editor REMOVING ALL LINE BREAKS on save

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

    Started just now and problem with every browser and latest versions

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    In wp-config.php ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin editor REMOVING ALL LINE BREAKS on save’ is closed to new replies.