Hustle conflict with MaxButtons plugin

The popup & slidein editors in Hustle break when the MaxButtons plugin is active.

  • leadsoft
    • Recruit

    Hello Lorena,

    I hope you are well today :slight_smile:

    It’s plugin conflict and I have flagged this issue to our Second Line Support team to figure out what is reason of this problem. When there’s any new insights about it, we will let you know here.

    Thanks

  • Ivan
    • Developer

    Hi Lorena !

    It looks like the MaxButtons plugin’s bug and you can report them about it. They add their custom button to tinyMCE in wrong way.

    First of all, you can open {wordpress_folder}/wp-content/plugins/maxbuttons/classes/maxbuttons-class.php file via FTP and find media_button function (approximately line 497) and replace this code

    $output .= '<script language="javascript">
    function loadMediaModal()
    {
    var mm = new window.maxFoundry.maxMedia();
    mm.init();
    mm.openModal();

    }
    </script>';

    to this one

    wp_add_inline_script( 'maxbuttons-modal', 'function loadMediaModal()
    {
    var mm = new window.maxFoundry.maxMedia();
    mm.init();
    mm.openModal();

    }' );

    It should fix all errors but anyway their button won’t work because it seems, they don’t expect to have several tinyMCE editors on a page at the same time.

    Best,

    Ivan.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.