Support » Plugin: Insert Pages » button in the toolbar of tinymce disappear conflict Page Builder

  • Resolved dimizu

    (@dimizu)



    Very great plugin, thank you.

    One problem and one question:

    The problem:
    When I activate the popular plugin Page Builder https://de.wordpress.org/plugins/siteorigin-panels/ from Siteorigin then the button in the toolbar of tinymce disappear. The shortcode works fine, only the button in the visual editor disappear.

    The question:
    Is there any chance that the plugin in the future also offer a widget? A widget with that I can insert the content of a page in the sidebar or through the Page Builder Widgets would very cool.

    https://wordpress.org/plugins/insert-pages/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Re: problem:
    So far I can’t reproduce the problem; when I install Page Builder I still see the toolbar button.
    http://i.imgur.com/1iYwqZt.jpg
    Can you tell me any javascript errors you see, and what versions of WordPress, Page Builder, and Insert Pages you’re using?

    Re: question:
    There’s a built-in widget that should have the same functionality: Post Loop. Just specify which page to show in the “Additional” field like so:
    name=your-page-slug
    http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters

    Thank you for the replay

    @re: problem
    Hmm interesting…. Now I have made a clean installation with WordPress wordpress-4.3.1-de_DE (German Edition). No changes, no plugins. The theme Twenty Fiteen is preset.

    First step:
    Install your plugin: works fine, also the button

    Second step:
    Install Page Biulder: your plugin works fine, also the button. You’re right, the Page Biulder is not responsible for the problem.

    Third step:
    The β€œPage Biulder” requires SiteOrigin Widget bundle (https://wordpress.org/plugins/so-widgets-bundle/), because there is an Wiget with an Editor, what is very important for works with Page Biulder. I installed SiteOrigin Widget bundle.
    Now the button in den Visual editor of WordPress also in the Visual Editor of the SiteOrigion Editor disappear (the shortcode are ok and works, only the button disappear). There are no JavaScript errors.

    @re: question:
    Yes, this is true, in Page Biulder there are the Post Loop Widget. Nice, but the backend of your Plugin is more beautiful and I would like to use it without Page Builder in the Widgets πŸ˜‰

    Plugin Author Paul Ryan

    (@figureone)

    Thanks for the update, I’ll take a look. I’ll also look into creating an Insert Pages widget and get back to you.

    Thanks πŸ™‚

    Plugin Author Paul Ryan

    (@figureone)

    Got it, I confirmed the issue with so-widgets-bundle. Something about the way they incorporate tinymce into their widgets. I’ll investigate.

    Plugin Author Paul Ryan

    (@figureone)

    The following widgets in the so-widgets-bundle include a tinymce editor which causes the problem:
    Contact Form
    Editor
    Google Maps
    Hero Image
    Testimonials

    A short term workaround would be to deactivate those specific widgets (via the SiteOriginal Widgets options page) if you’re not using them. I’m still looking into what the root cause is.
    /wp-admin/plugins.php?page=so-widgets-plugins

    Plugin Author Paul Ryan

    (@figureone)

    Okay, I’ve traced the issue down to line 181 of tinymce.class.php in so-widgets-bundle:
    https://plugins.trac.wordpress.org/browser/so-widgets-bundle/trunk/base/inc/fields/tinymce.class.php#L181

    Basically, the developer is telling tinymce to skip it’s initialization there, which is causing any other plugin that interfaces with tinymce to stop working. You’ll have to follow up with the so-widgets-bundle developer to get them to fix that code. Good luck!

    Plugin Author Paul Ryan

    (@figureone)

    Aloha dimizu, version 3.1 includes a widget for Insert Pages. Please test it and let me know how it works.
    https://wordpress.org/plugins/insert-pages/changelog/

    Thanks for the suggestion!

    Excuse the late feedback.
    a) tinymce editor problem: OK
    b) Widget: your Widget for Insert Pages works fine. Thank you πŸ™‚

    Hi!

    This is an old thread but as the folks at SiteOrigin still haven’t updated their plugin and the issue therefore still persists β€” and I’d love to use both your great plugin and PageBuilder β€” I thought I’d weigh in πŸ™‚

    Through experimentation (and by comparing the code to another plugin that works with SiteOrigin’s widget bundle), I found that a small change in your plugin would actually be enough to fix this compatibility issue:

    On lines 96-97 of insert-pages.php, you have the two add_filters for adding the button. It seems that they are called too late β€” if you move them out of here and to the end of the file, for example to line 796 or so, everything works smoothly and you get the Insert Page button also inside the SO widgets.

    I hope you’ll find this useful!

    Plugin Author Paul Ryan

    (@figureone)

    Oh cool! I’ll test that fix and push out a quick update (version 3.2.0). Thanks for figuring out a solution!

    Plugin Author Paul Ryan

    (@figureone)

    Aloha, I had to modify the fix since it broke compatibility with Divi theme. Please try upgrading to version 3.2.1 and let me know if it still works with SiteOrigin’s PageBuilder widget bundle.

    Plugin Author Paul Ryan

    (@figureone)

    Please test version 3.2.2, just released. Be sure to switch the setting in plugin options (Dashboard > Settings > Insert Pages) for “TinyMCE filter” to “compatibility mode” and let me know if it works when the SO widgets are enabled.

    It’s working now! Thanks — this will make life easier for us! πŸ™‚

    Have a great day!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘button in the toolbar of tinymce disappear conflict Page Builder’ is closed to new replies.