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>