Title: automatically added  p &#8211; bug still there in visual editor
Last modified: August 31, 2016

---

# automatically added p – bug still there in visual editor

 *  [W2014](https://wordpress.org/support/users/w2014/)
 * (@w2014)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/automatically-added-bug/)
 * Hallo, after i updated to the latest version, i get automatically added `<p>`
   around all paragraphs, when i switch from html to visual. if i deactivate “Keep
   paragraph tags” in the setting, i cannot see any br or p at all. So, how can 
   i keep activated “Keep paragraph tags” in the setting but stop tinymce adding`
   <p>` to the text (and still see/add the `<br>` tags) when i switch from html 
   to visual in the editor?
 * in the functions.php i have:
 *     ```
       function tinymce_remove_root_block_tag( $init ) {
           $init['forced_root_block'] = false;
           return $init;
       }
       add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );
       ```
   
 * and
 *     ```
       remove_filter( 'the_content', 'wpautop' );
       remove_filter( 'the_excerpt', 'wpautop' );
       ```
   
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/automatically-added-bug/?output_format=md)
[1](https://wordpress.org/support/topic/automatically-added-bug/?output_format=md)
2

 *  [crmb](https://wordpress.org/support/users/crmb/)
 * (@crmb)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/automatically-added-bug/page/2/#post-7344368)
 * Hello,
 * I think i also have a problem.
    I used the “keep ‘p’, ‘br’ tags” on one of my
   site to be able to make several newlines without creating new p tags
 * For exemple, (with newline, shift+enter)
 *     ```
       this
   
       is
       test
       ```
   
 * the editor would show (like intended) :
 *     ```
       <p>this<br/>
       <br/>
       is<br/>
       test</p>
       ```
   
 * ‘the_content’ was also show the same.
 * But now ‘the_content’ is :
 *     ```
       <p>this</p>
       <p>is<br />
       test</p>
       ```
   
 * the double ‘br’ are not kept anymore. A new ‘p’ is started
 *  [nobo73](https://wordpress.org/support/users/nobo73/)
 * (@nobo73)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/automatically-added-bug/page/2/#post-8949837)
 * Hi, W2014,
 * Do you still have this issue?
    I am facing the same problem. I figured out that
   the issue occur when a user who uses Mac Os X post something. Browser doesn’t
   matter. Chrome, Safari on Mac both have same issue.
 * It is fine when I post something from Chrome on Windows.
 * Any solution?
 *  Thread Starter [W2014](https://wordpress.org/support/users/w2014/)
 * (@w2014)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/automatically-added-bug/page/2/#post-8950223)
 * The bug is still there, no change, TinyMCE Advanced or wordpress does not accept
   having plain text or double br, it has to be wrapped in something. There are 
   many topics on this, but none worked for me, i did not try this [](http://stackoverflow.com/questions/30096024/wordpress-admin-editor),
   now i have a different approach, i leave it like it is, because I have many WordPress
   installations and i would have to make these changes overall. So, crazy that 
   there is no plugin that solves this, or even that TinyMCE Advanced is not addressing
   this issue.
    On the other Hand, the “br” – element is “a bit strict” defined 
   in html5: [the-br-element](https://dev.w3.org/html5/spec-preview/the-br-element.html),
   so probably it is bad practice to use plain text or double br, so wordpress automatically
   corrects this.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/automatically-added-bug/?output_format=md)
[1](https://wordpress.org/support/topic/automatically-added-bug/?output_format=md)
2

The topic ‘automatically added p – bug still there in visual editor’ is closed to
new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [W2014](https://wordpress.org/support/users/w2014/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/automatically-added-bug/page/2/#post-8950223)
 * Status: not a support question