2017-09-19 10 views
1

出現/動作していません。私はすべての依存関係を追加しました。CKEditorバージョンのプラグインは、私はドキュメントに続き、2つのプラグインを追加した

は、ここに私のconfig.js

CKEDITOR.editorConfig = function(config) { 
config.toolbarGroups = [ 
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, 
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, 
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, 
    { name: 'forms', groups: [ 'forms' ] }, 
    '/', 
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, 
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, 
    { name: 'links', groups: [ 'links' ] }, 
    { name: 'insert', groups: [ 'insert' ] }, 
    '/', 
    { name: 'styles', groups: [ 'styles' ] }, 
    { name: 'colors', groups: [ 'colors' ] }, 
    { name: 'tools', groups: [ 'tools' ] }, 
    { name: 'others', groups: [ 'others' ] }, 
    { name: 'about', groups: [ 'about' ] } 
]; 

config.height = 500;  // 500 pixels. 

/*config.removePlugins = 'colorbutton';*/ 

config.extraPlugins = 'button', 'toolbar', 'notification', 'clipboard', 'lineutils', 'dialogui', 'dialog', 'widgetselection', 'widget', 'image2', 'panel', 'floatpanel', 'panelbutton', 'enhancedcolorbutton'; 

config.removeButtons = 'NewPage,Source,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Outdent,Indent,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Anchor,Flash,SpecialChar,PageBreak,Iframe,BGColor,Maximize,ShowBlocks'; 
}; 

どのような援助がはるかに高く評価されています。

答えて

0

を参照してください:、buttonのようなプラグイン、toolbardialogdialoguiべき:プラグインのリストをカンマ区切り形式の1つの文字列として入力する必要がありhttps://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins

を:

config.extraPlugins = 'button,toolbar,notification,clipboard,lineutils,dialogui,dialog,widgetselection,widget,image2,panel,floatpanel,panelbutton,enhancedcolorbutton'; 

NOTE任意のプリセットで利用できるようにするには、非常にカスタマイズされたパッケージを持っていない限り、extraPluginsの設定でそれらを追加する必要はありません。彼らはすでにパッケージに入っているはずです。

+0

遅れてお詫び申し上げます、私はしばらくの間これを離れています。私はconfig.jsを変更しましたが、余分なプラグインは私のパネルに表示されません。彼らは自動的にそこにいるか、何かを変えなければなりませんか? –

+0

添付されているプラ​​グインから、ツールバーのimage2とenhancedcolorbutton(私はこれを知らないのですが)だけが表示されます。残りのプラグインにはツールバーボタンがありません。イメージボタンをクリックして、新しいダイアログ(https://ckeditor.com/cke4/addon/image2 - スクリーンショットのいずれかでダイアログがどのように表示されるか確認できます)が表示されるかどうかを確認してください。表示されない場合は、dev-toolsを開いて、コンソールでエラーが発生しているかどうかを教えてください。 –

+0

image2は私のための主なものです、私は色一つなしで管理することができます。 [違反]を取得します。document.writeの使用は避けてください。 ckeditor.js:557 and [違反] 'setTimeout'ハンドラが137msを奪ったckeditor.js:250 –

関連する問題