2011-07-14 47 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