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>

  • 相关阅读:
    python 装饰器
    python 环境迁移之requirements.txt (window环境)
    selenium 元素查找与属性
    pytest+allure(allure-pytest基于这个插件)设计定制化报告
    Capability配置
    python_excel
    python_连接mysql
    MySql_1
    appium_环境搭建
    appium_appium简介
  • 原文地址:https://www.cnblogs.com/duanlinlin/p/3397491.html
Copyright © 2011-2022 走看看