function tinymce_wysiwyg_plugins in TinyMCE 7
Return internal plugins for this editor; semi-implementation of hook_wysiwyg_plugin().
1 string reference to 'tinymce_wysiwyg_plugins'
- tinymce_tinymce_extended_editor in includes/
tinymce_extended.inc - Plugin implementation of hook_editor().
File
- includes/
tinymce_extended.inc, line 134 - Editor integration functions for TinyMCE.
Code
function tinymce_wysiwyg_plugins($editor) {
// Convert the more extensive TinyMCE plugin definitions to WYSIWYG API's
// simpler form.
$tinymce_plugins = tinymce_plugins();
$plugins = array();
foreach ($tinymce_plugins as $plugin_name => $plugin) {
if (isset($plugin['buttons'])) {
foreach ($plugin['buttons'] as $button_name => $button) {
$plugin['buttons'][$button_name] = $button['label'];
}
}
$plugins[$plugin_name] = $plugin;
}
return $plugins;
}