文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > ckeditor的详细配置
侵权投诉

ckeditor的详细配置

ckeditor的详细配置2010年01月25日 星期一 15:44一、使用方法:

1、在页面<head>中引入ckeditor核心文件ckeditor.js

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>

2、在使用编辑器的地方插入HTML控件<textarea>

<textarea id="TextArea1" cols="20" rows="2" class="ckeditor"></textarea>

如果是ASP.NET环境,也可用服务器端控件<TextBox>

<asp:TextBox ID="tbContent" runat="server" TextMode="MultiLine" class="ckeditor"></asp:TextBox>

注意在控件中加上 class="ckeditor" 。

3、将相应的控件替换成编辑器代码

<script type="text/javascript">

CKEDITOR.replace('TextArea1');

//如果是在ASP.NET环境下用的服务器端控件<TextBox>

CKEDITOR.replace('tbContent');

//如果<TextBox>控件在母版页中,要这样写

CKEDITOR.replace('<%=tbContent.ClientID.Replace("_","$") %>');

</script>

4、配置编辑器

ckeditor的配置都集中在 ckeditor/config.js 文件中,下面是一些常用的配置参数:

// 界面语言,默认为 'en'

config.language = 'zh-cn';

// 设置宽高

config.width = 400;

config.height = 400;

// 编辑器样式,有三种:'kama'(默认)、'office2003'、'v2'

第1页

你可能喜欢

  • sketchup工具栏设置
  • 工作程序microsoft
  • filetypedoc经济分析报告
  • project工程项目管理

热门文档

相关文档

  • ckeditor配置(详细)

    ckeditor配置(详细)_IT/计算机_专业资料。ckeditor配置(详细)一、使用方法: 1、在页面中引入 ckeditor 核心文件 ckeditor.js 2、在使用编辑器的地方插入 ...

  • ckeditor的详细配置

    ckeditor的详细配置ckeditor的详细配置隐藏>> 一、使用方法: 1、在页面中引入ckeditor核心文件ckeditor.js Java代码 view plaincopy to clipboardprint? ...

  • ckeditor的详细配置

    ckeditor的详细配置ckeditor的详细配置隐藏>> ???·?·¨?? 1??????ckeditor???ckeditor.js 2???±à?-?÷???·???HTML???<textarea> <text...

  • CKEDITOR配置

    CKEDITOR配置_IT/计算机_专业资料。CKEDITOR配置 javaCKeditor,以前叫 FCKeditor,...我们只需要调用上面的方法就可以了,具体上传成功后,在页面上输出一下代码 window...

  • CKEditor的配置与使用

    下面我就详细的说说 我的配置过程。 一、CKEditor 的安装与配置 1、到 drupal 官网上搜索模块 ckeditor 2、在官网上下载 ckeditor 模块的接口,下载下来为 ckeditor...

  • CKeditor的几种配置方式

    CKeditor的几种配置方式_IT/计算机_专业资料。CKEditor 的只配置文件被命名为“...CKEditor的配置与使用 2页 免费 CKEditor 安装与配置详解... 暂无评价 2页 免费...

  • ckeditor配置

    ckeditor工具条配置 1页 1财富值喜欢此文档的还喜欢 CKEDITOR配置 6页 免费 ckeditor的详细配置 5页 1财富值 CKEditor插件开发 10页 1财富值 CKEditor 5页 1...

  • ckeditor配置大全

    CKEDITOR配置 6页 免费 ckeditor配置(详细) 15页 免费 CKEditor配置 11页 2下载券 ckeditor的详细配置 13页 2下载券 CKEditor详细配置 16页 1下载券 ckeditor...

  • CKeditor使用和配置

    CKeditor使用和配置_IT/计算机_专业资料。CFeditor的基本使用和简单常用的配置方法,对项目开发很有帮助!要使用ckeditor,当然首先就是去http://ckeditor.com/ (ck...

  • CKEditor配置

    CKEditor配置_IT/计算机_专业资料。在线文本编辑器,CKEditor插件的使用方法和配置...设置工具栏为基本工具栏,高度为 70 CKEDITOR.replace('<%=tbLink.ClientID....

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email