CKEditor 4.4の場合、config.jsには、使用するプラグインとそのグループ化の方法を選択するセクションがあります。CKEditor 4.6のプラグインをオフにするにはどうすればいいですか?
このような何か:
config.toolbar = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor', 'magicformcustom' ] },
{ name: 'insert', items: [ 'Table', 'HorizontalRule', 'SpecialChar'] },
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
];
// Toolbar groups configuration.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'styles' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'colors' }
];
私はCKEditorバージョン4.6でconfig.jsの中でこれらを検索するときしかし、それらがなくなっていました。自分のサイトの別の場所に別のプラグインを置く必要があるので、私はオンラインのカスタムビルダーを使いたくありません。プラグインを追加/削除する場所はどこですか?
あなたはこのようにCKEditorバージョンをインスタンス化するときは、削除/ Webページ内のプラグインを追加することができます
これは問題を解決しますが、設定ファイルでこれを行う方法があるかどうかを知りたいですか?以前は、状況に応じていくつかの設定ファイルがありました。 – cytsunny
もっと重要なのは、config.jsにもともと設定されていたプラグインの名前を取得できる方法はありますか? – cytsunny
プラグインの名前はhttps://github.com/ckeditor/ckeditor-dev/tree/master/plugins – Wizard