3

I downloaded the code from the ckEditor but how can I add the plug in? So far I have added it to the plug in folder but how do I configure it so it's used.

Here's my config set up. I am not sure in particular how to add the button?

config.toolbarGroups = [
    { name: 'document', groups: ['Source', 'mode', 'document', 'doctools', 'maximize'] },
    { name: 'clipboard', groups: ['clipboard', 'undo'] },
    { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
    { name: 'forms' },
    { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
    { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'justify'] },
    { name: 'insert' },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'tools' },
    { name: 'others' }
];

config.extraPlugins = 'insertpre,format,justify,maximize,sourcearea';
4

1 回答 1

3

你可以添加Table到你的config.toolbar,比如:

config.toolbar = [
    { name: 'insert', items: [ 'Table' ] }
];
....

它会在你的编辑器中显示表格按钮

于 2013-10-24T09:24:22.737 回答