Commit 329c0500 authored by sun's avatar sun

#328116 by sun: Added Safari plugin for TinyMCE 3. Note for later: we could...

#328116 by sun: Added Safari plugin for TinyMCE 3.  Note for later: we could also add this plugin automatically, since we have jQuery.browser.
parent 4c552b90
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.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.
......
......@@ -314,7 +314,7 @@ function _wysiwyg_tinymce_plugin_name($op, $name) {
* 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(
......@@ -482,5 +482,15 @@ function wysiwyg_tinymce_plugins($editor) {
'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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment