如何知道CKEditor中的所有插件名称?

时间:2013-10-25 17:42:42

标签: jquery ckeditor

在哪里可以查看CKEditor中可用的所有插件的名称。我已经下载了完整的CKEditor包,我想删除一些默认插件,如缩进,RTL文本方向,LTR文本方向等。这些插件的所有名称都可用,以便我可以使用这种语法禁用它们,

config.removePlugins = 'forms,elementspath';

2 个答案:

答案 0 :(得分:26)

最简单的方法是检查此变量:

CKEDITOR.config.plugins;

例如,完整版本包含以下插件:

"dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,clipboard," +
"button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu," +
"contextmenu,dialogadvtab,div,elementspath,enterkey,entities,popup," +
"filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo," +
"font,format,forms,horizontalrule,htmlwriter,iframe,image,indent," +
"indentblock,indentlist,justify,link,list,liststyle,magicline," +
"maximize,newpage,pagebreak,pastefromword,pastetext,preview,print," +
"removeformat,resize,save,menubutton,scayt,selectall,showblocks," +
"showborders,smiley,sourcearea,specialchar,stylescombo,tab,table," +
"tabletools,templates,toolbar,undo,wsc,wysiwygarea"

您还可以查看哪些按钮可用:What toolbar buttons are available in CKEditor 4?

答案 1 :(得分:1)

请参阅工具栏配置程序以自定义http://ckeditor.com/latest/samples/toolbarconfigurator/index.html#basic

此致,Nicholls