如何清除ckeditor中的表单工具,并使大小可调 [英] how to remove form tools in ckeditor and also make size adjustable

查看:122
本文介绍了如何清除ckeditor中的表单工具,并使大小可调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用CKE编辑器。我的要求是删除 FORM TOOLS ,并使CKE编辑器的大小 ADJUSTABLE 。到目前为止我已经在网页上显示编辑器成功。我搜索google,但不幸的是我没有什么。

I am using CKE Editor in my project. My requirement is to remove "FORM TOOLS" and make size of the CKE Editor ADJUSTABLE . So far I have displayed editor in web page successfully. I have searched google but unluckily i have got nothing. kindly help me on this.

推荐答案

通过阅读文档找到一个解决方案,

Found one solution by reading documentation,

我在config.js中添加了以下配置,

I added following configuration in config.js,

CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:


         CKEDITOR.config.resize_enabled = true;
         CKEDITOR.config.width = 600;
         CKEDITOR.config.autoGrow_minHeight = 600;
         CKEDITOR.config.autoGrow_maxHeight = 600;
         CKEDITOR.config.toolbar_Full =
[
    ['Source','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
//  ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], // here i disable the form tools
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    ['BidiLtr', 'BidiRtl' ],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
    ['Maximize', 'ShowBlocks','-','About']
];
};

这篇关于如何清除ckeditor中的表单工具,并使大小可调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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