日期:2014-05-17 浏览次数:20494 次
KindEditor.ready(function (K) {
var editor1 = K.create('#BOOK_CATELOGUE', {
cssPath: '../plugins/code/prettify.css',
uploadJson: '../asp.net/upload_json.ashx',
fileManagerJson: '../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 id="BOOK_CATELOGUE" cols="100" rows="8" style="width:550px;height:200px;visibility:hidden;" runat="server"></textarea>
model.BOOK_CATELOGUE = Tools.nullObject2String(this.Request.Form["BOOK_CATELOGUE"]);
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminViewMasterPage.Master" Inherits="System.Web.Mvc.ViewPage<Pharmacy.Models.CompanyInfo>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">