日期:2014-05-17 浏览次数:20448 次
KindEditor.ready(function (K) {
var editor1 = K.create('#BOOK_CATELOGUE', {
cssPath: '/kindeditor/plugins/code/prettify.css',
uploadJson: '/kindeditor/asp.net/upload_json.ashx',
fileManagerJson: '/kindeditor/asp.net/file_manager_json.ashx',
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();
});
}
});
prettyPrint();
});
<textarea name="BOOK_CATELOGUE" id="BOOK_CATELOGUE" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" runat="server"></textarea>和
<%=Html.TextArea("BOOK_CATELOGUE", "", new { @rows = "8", @cols = "100", @style = "width:550px;height:200px;visibility:hidden;" })%>
model.BOOK_CATELOGUE = this.Request["BOOK_CATELOGUE"];
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="WebApplication1._default" %>
<html>
<head>
<title>
</title>
<script>
KindEditor.ready(function (K) {
var editor1 = K.create('#BOOK_CATELOGUE', {
&n