2017-09-19 7 views
1

를 표시/작동하지 않습니다. 모든 종속성을 추가했습니다.CKEditor 플러그인 내가 설명서를 따라 두 개의 플러그인을 추가 한

은 여기 내 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

참조하십시오 플러그인의 목록은 쉼표로 구분 된 값을 하나의 문자열로 입력해야합니다

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

참고 : button 같은 플러그인, toolbar, dialogdialogui이해야 어떤 사전 설정에서도 사용할 수 있으므로 사용자 정의 패키지가 없으면 extraPlugins 설정을 추가 할 필요가 없습니다. 그들은 이미 패키지에 있어야합니다.

+0

감사합니다. 지연에 사과 드리며 잠시 동안 떨어져 있습니다. config.js를 변경했지만, 추가 플러그인이 제 패널에 표시되지 않습니다. 그들이 자동으로 거기에 있어야합니까 아니면 뭔가를 변경해야합니까? –

+0

첨부 된 플러그인에서 툴바에있는 image2와 어쩌면 향상된 컬러 버튼 (미안하지만이 버튼을 모르는 부분) 만 보일 것입니다. 나머지 추가 플러그인에는 도구 모음 단추가 없습니다. 이미지 버튼을 클릭하고 새 대화 상자 (https://ckeditor.com/cke4/addon/image2 - 스크린 샷 중 하나에서 대화 상자가 어떻게 보이는지 확인할 수 있음)를 볼 수 있는지 확인하십시오. 볼 수 없다면 dev-tools를 열고 콘솔에 오류가 있는지 알려주십시오. –

+0

image2는 저를위한 주요 것이고, 나는 색상 1없이 관리 할 수 ​​있습니다. [위반] 문서 사용을 피하십시오. ckeditor.js : 557 and [위반] 'setTimeout'처리기가 137ms를 걸렸습니다. ckeditor.js : 250 –