• I can’t seem to get to MCE Table Buttons to play nice with the custom code I used to add the TinyMCE visualblocks plugin (basically the code WP codex suggests for adding TinyMCE plugin). With this code below in place the MCE Table Button never shows in the WP editor, but in checking my console there are no JS errors. Any help would be hugely appreciated!

    add_filter('mce_external_plugins', 'ub_add_mceplugins');
    function ub_add_mceplugins() {
    	$plugins = array('visualblocks');
    	$plugins_array = array();
    
    	foreach ($plugins as $plugin ) {
    		$plugins_array[ $plugin ] = get_stylesheet_directory_uri() . '/library/js/'. $plugin .'/visualblocks_plugin.js';
    	}
    	return $plugins_array;
    }
    function myformatTinyMCE($in) {
    	$in['toolbar2'].=',visualblocks ';
    	$in['visualblocks_default_state'] = true;
    	return $in;
    }
    add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

    https://www.ads-software.com/plugins/mce-table-buttons/

Viewing 1 replies (of 1 total)
  • Thread Starter onetrev

    (@onetrev)

    Shoot. Sorry, I forgot already posted this question a couple of months ago. My apologies! But the issue remains.

    Just to add a bit more info, as soon as you add the filter add_filter('mce_external_plugins', ....); the MCE Table Button no longer is displayed.

Viewing 1 replies (of 1 total)
  • The topic ‘How to combine with other TinyMCE plugins’ is closed to new replies.