ckeditor多个自定义工具栏

时间:2014-06-11 12:39:17

标签: ckeditor

您好我正在尝试在config.js文件中创建多个工具栏 我现在拥有的是:

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'],
];

我想将工具栏标准设置为我的默认工具栏。

在某些形式中,我想调用 lite 工具栏。

我该怎么做?

关心拉尔夫

1 个答案:

答案 0 :(得分:0)

我找到了它!

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