2014-06-11 75 views
0

你好,我試圖建立在我的config.js多個工具欄文件 我現在是這樣的:CKEditor的多個自定義工具欄

config.height = '300px'; 
config.uiColor = '#edf5ff'; 
config.format_tags = 'p;h1;h2;h3' 
config.toolbar = 'standard'; 
config.toolbar_standard = [ 
    ['Source', 'Maximize'], 
    ['Cut','Copy','Paste','PasteText','PasteFromWord','SpellChecker','-','Scayt'], 
    ['Undo','Redo','-','Find','Replace'], 
    ['Image','Table','HorizontalRule'], 
    ['Bold','Italic','Underline','Strike'],  
    ['NumberedList','BulletedList','-','Outdent','Indent','RemoveFormat'], 
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], 
    ['TextColor','BGColor'], 
    ['Link','Unlink','Anchor'], 
    ['Format','FontSize'], 
]; 
config.toolbar = 'lite'; 
config.toolbar_lite = [ 
    ['Source', 'Maximize'], 
    ['Cut','Copy','Paste','PasteText','PasteFromWord','SpellChecker','-','Scayt'], 
]; 

我想設置工具欄標準作爲我的默認工具欄。

以某種形式我想打電話給精簡版工具欄。

我該怎麼做?

Regards Ralph

回答

0

我發現它!

$params = array(); 
      $params ['toolbar'] = "lite"; 
      $editor = new Ckeditor($params);