I want to add multiple plugins(which i have created) on a toolbar of ckeditor. I have written below code in config.js
我想在ckeditor的工具栏上添加多个插件(我已创建)。我在config.js中写了下面的代码
CKEDITOR.editorConfig = function( config ) {
config.toolbar_Full = [
['Styles', 'Bold', 'Italic', 'Underline', 'SpellChecker', 'Scayt', '-', 'NumberedList', 'BulletedList'],
['Link', 'Unlink'], ['Undo', 'Redo', '-', 'SelectAll'], '/', ['timestamp', '-', 'linkbutton']
];
config.extraPlugins = 'linkbutton, timestamp';
};
and i have two different custom plugins. but another plugin is not accepted. How to add another plugin on a one toolbar?
我有两个不同的自定义插件。但是不接受另一个插件。如何在一个工具栏上添加另一个插件?
1 个解决方案
#1
46
You are just right except of the space after the comma so your definition regarding http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins should be:
除了逗号后的空格,你就是正确的,所以你对http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins的定义应该是:
config.extraPlugins = 'linkbutton,timestamp';
#1
46
You are just right except of the space after the comma so your definition regarding http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins should be:
除了逗号后的空格,你就是正确的,所以你对http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins的定义应该是:
config.extraPlugins = 'linkbutton,timestamp';