• 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 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    Hi Mickey,
    the fix is actually on the dev version only, available on GitHub (develop branch) and not on the current release version (2.1.6).
    On my environment the current dev version solves the problem you reported, or in other words it preserves br tags when saving widgets in Text mode.
    The br tags are stripped when switching back and forth from Visual to Text mode, but that’s the native WP behavior, and it also occurs on pages/posts editing.
    When you try the dev version, please ensure to empty your browser cache if you install it on a site where previously there was the 2.1.6 stable version (it’s possible that some caching issue may occur since the internal version is the same).

    Thread Starter Mickey Kay

    (@mcguive7)

    Ahhhh, I see. I thought you meant the SVN dev branch (trunk). Okay, I’ll give it a try. When will you pull it over here to the repo?

    Plugin Author Marco Chiesi

    (@marcochiesi)

    Ok, please let me know if you try it. The new version will be released probably in a matter of days.

    Thread Starter Mickey Kay

    (@mcguive7)

    Seems to be working for me. Thanks for attending to this. I’ll let you know if I come across any buggy behavior and please push an official release soon! Thanks!

    Plugin Author Marco Chiesi

    (@marcochiesi)

    The new release 2.2.0 has just been published.

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