Wysiwyg 5.x-x.x, xxxx-xx-xx
---------------------------
+#328116 by sun: Added Safari plugin for TinyMCE 3.
#327710 by sun: Added nicEdit support.
#323855 by sun: Increased supported version of jWYSIWYG to 0.5.
#323671 by sun: Fixed TinyMCE editor not resized when browser is resized.
* Return internal plugins for TinyMCE; semi-implementation of hook_wysiwyg_plugin().
*/
function wysiwyg_tinymce_plugins($editor) {
- return array(
+ $plugins = array(
'default' => array(
'path' => $editor['library path'] .'/themes/advanced',
'buttons' => array(
'load' => TRUE,
),
);
+ if ($editor['installed version'] > 3) {
+ $plugins['safari'] = array(
+ 'path' => $editor['library path'] .'/plugins/safari',
+ 'extensions' => array('safari' => t('Safari compatibility')),
+ 'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari',
+ 'internal' => TRUE,
+ 'load' => TRUE,
+ );
+ }
+ return $plugins;
}