2011-07-14 48 views
0

我在我的Drupal 6网站上安装了WYSIWYG模块,并且使用了TinyMCE。
这工作正常。Drupal和TinyMCE + Filemanager所见即所得

现在我想添加从TinyMCE filemanager插件,如何做到这一点?

我增加了文件管理器文件夹/sites/all/libraries/tinymce/jscripts/tiny_mce/plugins ,改变这样的:在config.php文件

但现在什么

$mcFileManagerConfig['authenticator'] = "DrupalAuthenticator";

回答

1

所见即所得模块中的TinyMCE插件配置在sites/all/modules/wysiwyg/editors/tinymce.inc, 函数中:wysiwyg_tinymce_plugins($ editor)。 您可以定义实现hook_wysiwyg_plugin(一个插件),如:

'font' => array(
    'path' => $editor['library path'] . '/plugins/font', 
    'buttons' => array('formatselect' => t('HTML block format'), 'fontselect' => t('Font'),  'fontsizeselect' => t('Font size'), 'styleselect' => t('Font style')), 
    'extended_valid_elements' =>  array('font[face|size|color|style],span[class|align|style]'), 
    'url' => 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/font', 
    'internal' => TRUE, 

),

+0

感谢,我会尝试这一点,如果我回家。我如何知道使用什么“按钮”? – Ruben