我想在 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';
};
我有两个不同的自定义插件。但不接受另一个插件。如何在一个工具栏上添加另一个插件?
最佳答案
除了逗号后面的空格之外,你是对的,所以你对 http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins 的定义应该是:
config.extraPlugins = 'linkbutton,timestamp';
关于javascript - 在ckeditor的工具栏上添加多个额外的插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12639195/