zoukankan      html  css  js  c++  java
  • KindEditor使用说明

     1,引用关联css 文件:kindeditor/themes/default/default.css和kindeditor/plugins/code/prettify.css

     2.引用关联js 文件:kindeditor/kindeditor.js、kindeditor/lang/zh_CN.js和kindeditor/plugins/code/prettify.js

     3.关联script编写:

       KindEditor.ready(function(K) {

       var editor1 = K.create('#对应文本域ID',

      {     cssPath : '../../kindeditor/plugins/code/prettify.css',   

        allowFileManager : true,     afterCreate : function()

         {      

          var self = this;

             K.ctrl(document, 13, function() {   

            self.sync();    

             K('form[name=example]')[0].submit();      

        });    

          K.ctrl(self.edit.doc, 13, function() {       

          self.sync();    

         K('form[name=example]')[0].submit();    

        });       

      }   

     });

      });

    4.html部分编写和取值:

      <textarea id="自定义id名称" cols="100" rows="8" style=" 99%; height: 200px;
                        visibility: hidden;" runat="server"></textarea>

    string   textareaValue=自定义id名称.Value.trim();

  • 相关阅读:
    kafka在线修改topic配置
    DateFormat采坑
    mysql ifnull 取反值;case when null的使用
    pip常用命令
    zip压缩
    Solaris 10 x86-64 虚拟机配置
    正则学习
    vnc
    window10创建系统服务
    java内存对象clone
  • 原文地址:https://www.cnblogs.com/yclnet/p/3237582.html
Copyright © 2011-2022 走看看