zoukankan      html  css  js  c++  java
  • CKEditor编辑器的使用方法

    CKEditor
      网页中实现所见即所得的编辑器。

    使用步骤:

     1.下载CKEditor
      下载地址:http://ckeditor.com/download
     2.添加CKEditor的文件夹到项目中的WebRoot目录下

     3.在页面中引入CKEditor。在页面中添加下面代码:
      <script type="text/javascript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js"></script>
     4.修改页面中<textarea>标签属性,添加“class="ckeditor"”

     5.可以在页面中使用CKEditor了


    可以通过config.js配置CKEditor
     CKEDITOR.editorConfig = function( config )
     { 
      config.language = 'zh-cn';//配置语言,zh-cn代表中文
      config.uiColor = '#AADC6E';//背景颜色
      config.width='auto';//宽度
      config.height='300px';//高度
      config.skin='office2007';//皮肤:v2,kama,office2007
     };

  • 相关阅读:
    C#中的委托和事件的使用
    C#中Attribute/特性的使用
    Eclipase + CDT
    设计模式总结
    Nginx源码编译
    Nginx自定义扩展模块
    电池的寿命
    大盗阿福
    河中跳房子
    An Easy Problem
  • 原文地址:https://www.cnblogs.com/fifiyong/p/5940904.html
Copyright © 2011-2022 走看看