CKEditor - 没有工具栏 [英] CKEditor - No toolbars

查看:356
本文介绍了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.
};

请参阅开发人员指南了解更多信息。

这篇关于CKEditor - 没有工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆