Title: Automatic paragraph functionality still appears broken
Last modified: August 22, 2016

---

# Automatic paragraph functionality still appears broken

 *  Resolved [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/)
 * This new paragraph functionality still appears to be broken. I’m trying to use
   insert the following code using your widget:
 *     ```
       This guide is for campaign owners invited to the Forever Funding pilot program.
   
       <br/><br/><br/>
   
       <h4>Questions or Feedback?</h4>
       <a href="http://www.mysite.com/contact/questions" class="contact"><strong>Contact Us</strong>
       Response within 24 hours</a>
   
       <br/><br/>
   
       <h4>Join the pilot program</h4>
       Campaign owners of invited campaigns will have received an email invitation. Click through the invitation to join the pilot program.
   
       <br/><br/><br/>
   
       <h4>Leave the pilot program</h4>
       [pop-form form_id="15" link_text="Request to leave pilot"]
       <br/>
       Please allow for 1-2 days processing time after submitting your request.
       ```
   
 * When I insert this code in Text view, all my linebreaks disappear and the whole
   thing collapses, like so (regardless of whether or not “Automatically insert 
   paragraphs” is checked):
 *     ```
       This guide is for campaign owners invited to the Forever Funding pilot program.
       <h4>Questions or Feedback?</h4>
       <a href="http://www.mysite.com/contact/questions" class="contact"><strong>Contact Us</strong>
       Response within 24 hours</a>
       <h4>Join the pilot program</h4>
       Campaign owners of invited campaigns will have received an email invitation. Click through the invitation to join the pilot program.
       <h4>Leave the pilot program</h4>
       [pop-form form_id="15" link_text="Request to leave pilot"]
       Please allow for 1-2 days processing time after submitting your request.
       ```
   
 * At this point, things render okay on the front end (including line breaks), but
   if I save the widget again, the front-end appearance then becomes totally collapsed(
   since it is now saving the version where all the line breaks are removed).
 * So something is definitely still broken. Sure, I would expect the Visual editor
   to automatically consolidate whitespace (although not necessarily like it’s doing).
   But the Text editor should never modify the contents of the widget, this is the
   whole point of the Text editor.
 * Another example – I try to add the following code to the Text editor:
 *     ```
       Line 1<br />Line2
       ```
   
 * After saving, this is what now appears:
 *     ```
       Line 1
       Line 1
       ```
   
 * So now the formatting is destroyed.
 * Can you please confirm that you’re able to reproduce this issue, and please work
   on a fix? I’ve tried digging around in the plugin a bit, but a half and hour 
   later I can’t identify what’s causing the issue. Thanks!
 * – Mickey
 * [https://wordpress.org/plugins/black-studio-tinymce-widget/](https://wordpress.org/plugins/black-studio-tinymce-widget/)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/page/2/?output_format=md)

 *  [edgar3](https://wordpress.org/support/users/edgar3/)
 * (@edgar3)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410646)
 * I am having the sam issue since upgrading the plugin this morning.
    I can force
   line breaks using [br], but that is not convenient for the client. I use this
   plugin very heavily throu my websites and need to to work. I hope a fix is in
   the works.
 * g
 *  Thread Starter [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410647)
 * Just to confirm, this behavior does NOT happen in the standard post Text editor,
   so I doubt it’s related to any plugin or theme that I have active.
 *  [edgar3](https://wordpress.org/support/users/edgar3/)
 * (@edgar3)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410655)
 * in addition: just noticed the left sidebar tinyMCE widget is working fine. ( 
   i have not tried to edit it for fear of it breaking too)
    Only the right is not
   working. (disable all plugins, still did not work)
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410658)
 * The option “Automatically insert paragraphs” only affects rendering of the widgets
   and not editing, exactly as it works for default WP text widgets.
 * Starting from version 2.x of Black Studio TinyMCE, the editor should behave exactly
   the same as it does for pages/post, while in previous versions there were differences.
   I suppose that you’re using latest version 2.1.5 so it’s strange that you’re 
   observing different behaviors between widgets and posts.
 * The HTML code rewriting is a native “feature” of WordPress (see [wpautop](http://codex.wordpress.org/Function_Reference/wpautop)),
   which overides the default TinyMCE editor behavior.
 * I tried your code samples, and when I paste the code in text mode and switch 
   back and forth from Visual, I get it rewritten as following (different from yours):
 *     ```
       This guide is for campaign owners invited to the Forever Funding pilot program.
   
       &nbsp;
       <h4>Questions or Feedback?</h4>
       <a class="contact" href="http://www.mysite.com/contact/questions"><strong>Contact Us</strong>
       Response within 24 hours</a>
   
       &nbsp;
       <h4>Join the pilot program</h4>
       Campaign owners of invited campaigns will have received an email invitation. Click through the invitation to join the pilot program.
   
       &nbsp;
       <h4>Leave the pilot program</h4>
       [pop-form form_id="15" link_text="Request to leave pilot"]
   
       Please allow for 1-2 days processing time after submitting your request.
       ```
   
 * and
 *     ```
       Line 1
       Line2
       ```
   
 * I get exactly the same code on widgets and on posts, so I think that you may 
   have something (plugin/theme) which is affecting this.
    Please try to temporarily
   switch to a WP default theme.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410665)
 * P.s. a trick to prevent WordPress from rewriting `<br />` and `<p>` tags is to
   add an attribute (i.e. a class), i.e. `<br class="" />`
    Alternatively you may
   install [TinyMCE Advanced](https://wordpress.org/plugins/tinymce-advanced/) plugin,
   which has an option to “Stop removing the `<p>` and `<br />` tags when saving
   and show them in the Text editor”
 *  [hahvensa](https://wordpress.org/support/users/hahvensa/)
 * (@hahvensa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410818)
 * Hello, I’ve been having same kind of problem after updating the plugin. Never
   had this before and I’ve been using Black Studio TinyMCE on various sites for
   a long time because this plugin is great.
 * So the problem:
    I write text on the editor without having “Automatically insert
   paragraphs” on. I create line breaks (Shift + Enter) and everything is fine even
   though I switch between Visual/HTML but after I hit Save, visit some other page
   and then come back, the widget renders line breaks to paragraphs. This does not
   happen on public site but if I go to edit widget again I have to remove all the
   extra paragraphs. This is very confusing and creates extra work.
 * After latest update, collapsing of all the line breaks hasn’t happened anymore
   but there are now extra paragraphs even though automatically inserting paragraphs
   is off.
 * This does not happen on normal editor. I have WP 4 and theme called Responsive
   1.9.7.4 (by CyberChimps) I’ve tried to disable all other plugins. Didn’t help.
   But thanks for all the hard work and great plugin!
 * I can try TinyMCE if it helps.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410823)
 * [@hahvensa](https://wordpress.org/support/users/hahvensa/)
    After your detailed
   description I can confirm the presence of the bug. Working on a fix (unfortunately
   it’s not that easy because a quick fix for this would break other stuff). Stay
   tuned, I will update this topic when a fix will be available.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410829)
 * Version 2.1.6 should fix this.
 *  Thread Starter [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410839)
 * Still experiencing the same problem – have you tried reproducing this? Here’s
   a screencast of the issue with standard default WP and Twenty Fourteen theme:
   
   [http://recordit.co/nCy8JNeL6D.gif](http://recordit.co/nCy8JNeL6D.gif)
 * Would really appreciate a fix 🙂
 * Just to be clear – the issue I’m experiencing in BSTMCE is only happening there,
   and not in the standard post editor.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410841)
 * [@mickey](https://wordpress.org/support/users/mickey/) Kay
    Ok, I was able to
   reproduce the issue. Sorry for the confusion but it was a totally different issue
   compared to the one reported by [@hahvensa](https://wordpress.org/support/users/hahvensa/),
   even if both were related to line breaks being overwritten or stripped.
 * I should have fixed it now, please could you test the develop version available
   on [github](https://github.com/black-studio/black-studio-tinymce-widget)?
 * Note: Your sample code is maintained as it is but only as long as you don’t switch
   to Visual mode. If you switch to Visual and then back to Text, your 
    tags will
   be transformed in newlines (but they will be  again when rendering the widgets
   if you select the option “Automatically insert paragraphs”). This is the same
   behavior that you should experience in post/pages. So, if you want to keep your
   code unmodified, you should never switch to Visual mode. On the other hand if
   you can’t switch to Visual there’s no real advantage compared with WP default
   text widgets.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410843)
 * [@mickey](https://wordpress.org/support/users/mickey/) Kay
    Sorry, but it looks
   like that the fix for the issue above broke up other things, so please standby
   before testing the dev version. I will try to find a different solution.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410847)
 * Ok, it should be fine now. Please take a test with the dev version.
    There was
   a recurring problem related to a [WP core bug](https://core.trac.wordpress.org/ticket/28403)
   but I implemented a workaround for it.
 *  [hahvensa](https://wordpress.org/support/users/hahvensa/)
 * (@hahvensa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410851)
 * Thank you!
 *  Thread Starter [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410928)
 * Can you please confirm the status of this issue? Is this “fix” only available
   on the dev version, or does 2.1.6 include it?
 *  Thread Starter [Mickey Kay](https://wordpress.org/support/users/mcguive7/)
 * (@mcguive7)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/#post-5410929)
 * PS – the same issue still exists in the dev version: [http://recordit.co/nCy8JNeL6D.gif](http://recordit.co/nCy8JNeL6D.gif)
 * This is not fixed 🙁

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/page/2/?output_format=md)

The topic ‘Automatic paragraph functionality still appears broken’ is closed to 
new replies.

 * ![](https://ps.w.org/black-studio-tinymce-widget/assets/icon.svg?rev=2627604)
 * [Black Studio TinyMCE Widget](https://wordpress.org/plugins/black-studio-tinymce-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/black-studio-tinymce-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/black-studio-tinymce-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/black-studio-tinymce-widget/reviews/)

## Tags

 * [automatic](https://wordpress.org/support/topic-tag/automatic/)
 * [break](https://wordpress.org/support/topic-tag/break/)
 * [disappear](https://wordpress.org/support/topic-tag/disappear/)
 * [formatting](https://wordpress.org/support/topic-tag/formatting/)
 * [line](https://wordpress.org/support/topic-tag/line/)
 * [paragraph](https://wordpress.org/support/topic-tag/paragraph/)

 * 20 replies
 * 4 participants
 * Last reply from: [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/automatic-paragraph-functionality-still-appears-broken/page/2/#post-5410952)
 * Status: resolved