• Resolved Mickey Kay

    (@mcguive7)


    There’s another issue related to the “Automatically add paragraphs” feature. Since this is now on by default, I’m experiencing an issue where – when I update the plugin – my old widgets that had custom HTML in them are now having paragraph tags randomly inserted. This feature should be OFF by default, as this is the only way to ensure backwards compatibility. Am I wrong?

    https://www.ads-software.com/plugins/black-studio-tinymce-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    This subject is probably more complicated than it may seem at first sight. Old versions of the plugin where using a different approach, as they were adding automatically paragraphs when editing. This is the native TinyMCE editor behavior. From version 2.x the plugin has switched to the WordPress native way of handling this (different form native TinyMCE), which consists in stripping the p tags when editing (with WP custom js functions) and adding them back when rendering the text (at PHP level with wpautop function).
    When working in Visual mode there shouldn’t be differences on the final result, however if working in HTML mode the automatic addition of paragraphs may be undesired for some users. That’s why on version 2.1 the option “Automatically add paragraphs” was added. It works just as the same option available on native WP text widgets.
    Since for widgets created with version prior to 2.1 that parameter was not set, it’s necessary to guess if wpautop should be applied or not. The behavior should be different for widgets created with 1.x versions and 2.0.x versions, so it’s not so trivial.
    Anyway, today I implemented some enhancement about this. Please could you try the latest dev version on GitHub?

    Plugin Author Marco Chiesi

    (@marcochiesi)

    All line breaks disfunctions should have been fixed in version 2.2.1. If you’re still having issues, please open a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Another issue with the "Automatically add paragraphs" feature’ is closed to new replies.