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>

  • 相关阅读:
    2019-8-31-dotnet-新项目格式与对应框架预定义的宏
    2018-10-31-C#-程序内的类数量对程序启动的影响
    位域
    free命令
    lsof命令
    Linux挂载Windows文件夹
    Source Insight用法
    预处理命令
    QMessageBox
    QComboBox
  • 原文地址:https://www.cnblogs.com/duanlinlin/p/3397491.html
Copyright © 2011-2022 走看看