Support Forum

TinyMCE Table Plugin?

SC Schmucke
Schmucke
Member

Hey,

we wont to use the tinyMCE plugin, but we need the Table Plugin from TinyMCE, can anyone tell me how can i activate this?

Thanks :-)

1 Answer

New Answer

MP Mr Papa
Mr Papa
Member

in your spFunctions.php file of your SP theme (and make sure it is your theme and not ours to keep from losing changes on updates), add this:

add_filter('sph_mce_external_plugins', 'my_add_tinymce_plugins');
function my_add_tinymce_plugins($plugins) {
    $plugins['table'] = WP_CONTENT_URL.'/sp-resources/table/editor_plugin.js';
    return $plugins;
}

This assumes you put the table plugin folder in sp-resources directory…

then just go to tinymce options and add plugin of ‘table’ and a button of ‘tablecontrols’