• Resolved Marie-Aude

    (@marie-aude)


    Hi,

    I have several additional buttons in my TinyMceBar, included by various plugins.

    They do not appear on the bar of the text editor when I use Elementor.
    Is it a bug or a feature ?? ? Is there a piece of code I can add to see these buttons in Elementor text editor ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Can you please send us your site URL?

    Thread Starter Marie-Aude

    (@marie-aude)

    Hi

    I have the same problem on https://lamarmitevagabnode.com (with SmartMag Magazine) and https://www.lumieredelune.com

    I also tested on a plain vanilla site, and that was the same.

    I don’t know how to include screenshots here, if you give me an email address, I can show you my missing buttons

    Hi,

    This might be conflict-related.

    I would like to have you perform a few steps to fix this issue-

    Go to Elementor > Settings on your WordPress dashboard.
    Click the Advanced tab and then switch the CSS print method to Internal embedding.
    Clear all cache: your browser’s cache, other plugins’ cache, server cache (if possible).
    If the issue persists, deactivate all plugins apart from Elementor. If this helps, reactivate them one by one to find the culprit.
    In case this didn’t help, switch your theme (temporarily) and see if it makes any difference.

    Please update us when you can.

    Thread Starter Marie-Aude

    (@marie-aude)

    Hello

    changing to internal embedding improved the situation, as I have now the plugins button that appear before the tinymce bar (like Add Media, or “Add shortcode” from Ultimate shortcode).
    Nevertheless, the tinymce bar in the editor is stil “plain vanilla”.

    I made a fresh install, with a wordpress standard theme (2019) and only Elementor and a very simple plugin adding formatting buttons in the bar, and the buttons do not show up.

    Here is the code in the plugin :

    add_action( 'init', 'lln_learnar_buttons' );
    
    function lln_learnar_buttons() {
        add_filter( 'mce_external_plugins', 'lln_learnar_add_buttons' );
        add_filter( 'mce_buttons', 'lln_learnar_register_buttons' );
    }
    function lln_learnar_add_buttons( $plugin_array ) {
        $plugin_array['lln_learnar'] = plugins_url().'/'.dirname( plugin_basename( __FILE__ ) ).'/span_rtl/editor_plugin.js';  
        return $plugin_array;
    }
    function lln_learnar_register_buttons( $buttons ) {
        array_push( $buttons, 'ar_marking' , 'forvo' ); 
        return $buttons;
    }
    

    As it works perfectly in classic editor mode, I’m sure the files are available.. I also checked in the console and I have no errors, just some notices, linked to the tinymce.js, not to my files.

    Thread Starter Marie-Aude

    (@marie-aude)

    Me again

    I googled the filter mce_external_plugins and I found this discussion on GitHub
    https://github.com/elementor/elementor/issues/11504

    When I commented line 752 in elementor\core\editor\editor.php

    remove_all_filters( 'mce_buttons', 10 );
    remove_all_filters( 'mce_external_plugins', 10 );

    I got all my buttons back.

    So it’s not a conflict, it’s not a bug, it’s a “feature” that equals to a kind of bug, as it removes functionalities.

    I corrected it by assigning a priority to my filters, so that they are executed after yours.

    This seems to be a hidden function as even you did not think about it. So it would be nice to document it ?

    Second point : I can modify my own plugins without any problem, but what happens if I need a button from another plugin ? Is there a filter or a hook I can use to override yours ?

    HI,

    Since this is a development-based query, may opt to visit our Github account where you may get in contact with a member of our development team to query this.
    Please note that this is not an official support channel but a respective member of the development team will respond to your post as soon as they are available.
    Please follow this guide which outlines the steps required to post on our Github: https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md

    Thread Starter Marie-Aude

    (@marie-aude)

    Well my problem is a question about “how to”, not a bug neither a feature request. I went to GitHub but I’m not sure it’s the right place.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Additionnal TinyMce buttons not showing in text editor’ is closed to new replies.