How to combine with other TinyMCE plugins
-
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' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to combine with other TinyMCE plugins’ is closed to new replies.