主题: KindEditor加 runat="server" 界面无法加载 |
作者: aassbbdd, 发布日期: 2014-10-04 21:52:05, 浏览数: 1577 |
<script charset="utf-8" src="../kindeditor-4.1.10/kindeditor.js"></script>
<script charset="utf-8" src="../kindeditor-4.1.10/plugins/code/prettify.js"></script> <script charset="utf-8" src="../kindeditor-4.1.10/lang/zh_CN.js"></script> <script charset="utf-8" src="../kindeditor-4.1.10/themes/default/default.css"></script> <script charset="utf-8" src="../kindeditor-4.1.10/plugins/code/prettify.css"></script> <script type="text/javascript"> KindEditor.ready(function (K) { var editor1 = K.create('#MainContent_Content',{ cssPath: '/kindeditor-4.1.10/plugins/code/prettify.css', uploadJson: '/kindeditor-4.1.10/asp.net/upload_json.ashx', fileManagerJson: '/kindeditor-4.1.10/asp.net/file_manager_json.ashx', allowFileManager: true, afterCreate: function () { var self = this; K.ctrl(document, 13, function () { self.sync(); K('textarea[name=Content]')[0].submit(); }); K.ctrl(self.edit.doc, 13, function () { self.sync(); K('textarea[name=Content]')[0].submit(); }); } }); prettyPrint(); }); </script>
<textarea id="content" cols="100" rows="8" style="width:700px;height:200px;" runat="server"></textarea>
|