CKEditor - 没有工具栏

8 javascript ckeditor

所以,我得到了一个textareaCKEditor插件,但我只是希望它干净,没有任何东西.没有工具栏,没有状态或任何栏.这很简单,但我无法在文档或网络上找到它!

CKEditor的开头是:

$('#texto').ckeditor({skin:'office2003'});

小智 16

实际上,正确的方法是删除呈现这些功能的插件:

config.removePlugins = 'toolbar,elementspath,resize';
Run Code Online (Sandbox Code Playgroud)

使用新的CKEditor 4,您甚至可以在没有这些插件的情况下构建自己的编辑器,从而使编辑器代码更小:http://ckeditor.com/builder


wsa*_*lle 4

您可以编辑config.js放置源文件的目录中的文件来指定自定义工具栏。

CKEDITOR.editorConfig = function( config )
{
   config.toolbar = 'Custom'; //makes all editors use this toolbar
   config.toolbar_Custom = []; //define an empty array or whatever buttons you want.
};
Run Code Online (Sandbox Code Playgroud)

有关详细信息,请参阅开发人员指南。