CKEditor - 没有工具栏
问题描述:
所以我得到了一个带有 CKEditor
插件的 textarea
,但我只想要它干净,没有任何东西。没有工具栏,没有状态或任何栏。这很简单,但我无法在文档或网络上找到它!
So I got a textarea
with CKEditor
plugin but I just want it clean, without anything. No toolbars and no status or whatever bar. It´s simple but I can´t find it on docs or web!
我的 CKEditor
启动时间:
$('#texto')。ckeditor({skin:'office2003'});
答
您可以在放置的目录中编辑 config.js
文件源文件以指定自定义工具栏。
You can edit the config.js
file in the directory where you put the source files to specify custom toolbars.
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.
};
请参阅开发人员指南了解更多信息。