zoukankan      html  css  js  c++  java
  • 使用kindeditor文本编辑器

    aspx中代码:

    <%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="JiangHuJia.Web.backstage.AboutUs.News" %>

     ( 注意:在上行代码中别忘了写  ValidateRequest="false")

    <link rel="stylesheet" href="../Styles/kindeditor-4.1.7/themes/default/default.css" />

        <link rel="stylesheet" href="../Styles/kindeditor-4.1.7/plugins/code/prettify.css" />
        <script type="text/javascript" charset="utf-8" src="../Styles/kindeditor-4.1.7/kindeditor.js"></script>
        <script type="text/javascript" charset="utf-8" src="../Styles/kindeditor-4.1.7/lang/zh_CN.js"></script>
        <script type="text/javascript" charset="utf-8" src="../Styles/kindeditor-4.1.7/plugins/code/prettify.js"></script>
        <script type="text/javascript">
            KindEditor.ready(function (K) {
                var editor1 = K.create('#<%=txtContent.ClientID %>', {
                    cssPath: '../Styles/kindeditor/plugins/code/prettify.css',
                    uploadJson: '../Styles/kindeditor/asp.net/upload_json.ashx',
                    fileManagerJson: '../Styles/kindeditor/asp.net/file_manager_json.ashx',
                    allowFileManager: true,
                    afterCreate: function () {
                        var self = this;
                    }
                });
            });
        </script>

  • 相关阅读:
    hdu acm 2639背包问题,这题很经典啊~~~
    hdu acm 2191
    qt中实现区域反白效果
    解决pythonxml 模块 在ubuntu karmic中找不到的问题
    Python正则表达式操作指南
    webkit 资料
    标点符号的英语名称
    ubuntu设置分辨率
    如何绑定多个action到一个slot
    改注册表,实现像迅雷一样的自定义url
  • 原文地址:https://www.cnblogs.com/duanlinlin/p/3397491.html
Copyright © 2011-2022 走看看