24

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';
};

私は2つの異なるカスタムプラグインを持っています。ただし、別のプラグインは受け入れられません。1 つのツールバーに別のプラグインを追加するには?

4

2 に答える 2

59

コンマの後のスペースを除いてちょうどいいので、http ://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins に関する定義は次のようになります。

config.extraPlugins = 'linkbutton,timestamp';
于 2012-10-18T11:18:40.000 に答える