18

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

config.removePlugins = 'forms,elementspath';
4

2 回答 2

33

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

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"

您还可以检查哪些按钮可用:CKEditor 4 中有哪些工具栏按钮可用?

于 2013-10-26T09:48:28.323 回答
2

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

问候,尼科尔斯

于 2016-02-08T14:50:46.833 回答