• Resolved Mickey Kay

    (@mcguive7)


    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="https://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="https://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://www.ads-software.com/plugins/black-studio-tinymce-widget/

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

    (@mcguive7)

    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.

    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

    (@marcochiesi)

    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), 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="https://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

    (@marcochiesi)

    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 plugin, which has an option to “Stop removing the <p> and <br /> tags when saving and show them in the Text editor”

    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

    (@marcochiesi)

    @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

    (@marcochiesi)

    Version 2.1.6 should fix this.

    Thread Starter Mickey Kay

    (@mcguive7)

    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:
    https://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

    (@marcochiesi)

    @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, 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?

    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

    (@marcochiesi)

    @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

    (@marcochiesi)

    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 but I implemented a workaround for it.

    Thank you!

    Thread Starter Mickey Kay

    (@mcguive7)

    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

    (@mcguive7)

    PS – the same issue still exists in the dev version: https://recordit.co/nCy8JNeL6D.gif

    This is not fixed ??

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Automatic paragraph functionality still appears broken’ is closed to new replies.