TIEro. Please help. I am not clear where you put what code.
> There’s a single plugin.min.js file in there.
> Put that in my plugin folder (at the root, just for testing).
>
I have a plugin named wp-voting-contest. So I should copy the file
tinymce_4.5.1\tinymce\js\tinymce\plugins\wordcount\plugin.min.js
and upload it to my folder:
/httpdocs/wp-content/plugins/wp-voting-contest
?
Also, where (path and filename) did you add/put the filter code:
// Add wordcount plugin to TinyMCE for all instances.
add_filter('mce_external_plugins', 'aa_register_tinymce_plugins');
function aa_register_tinymce_plugins() {
$plugins = array('wordcount'); //Add any more plugins you want to load here
$plugins_array = array();
//Build the response - the key is the plugin name, value is the URL to the plugin JS
foreach ($plugins as $plugin ) {
$plugins_array[$plugin] = plugins_url('plugin.min.js', __FILE__);
}
return $plugins_array;
}
?
Please reply soon. Thanks, Frankie Kam.
-
This reply was modified 9 years, 7 months ago by frankiekam.