主题: 在asp中我是这么调用编辑器的,应该没错的,怎么老是调用php的上传程序 |
作者: jyuan, 发布日期: 2014-02-18 19:13:52, 浏览数: 2181 |
如题:在asp中我是这么调用编辑器的,应该没错的,怎么老是调用php的上传程序,造成图片不能上传,聪明的你能告诉我?代码如下: <script charset="utf-8" src="../kindeditor/kindeditor-all-min.js"></script> <script charset="utf-8" src="../kindeditor/lang/zh_CN.js"></script><script> KindEditor.ready(function(K) { var editor1 = K.create('textarea[name="PExplain"]', { cssPath : '../kindedito/plugins/code/prettify.css', uploadJson : '../kindedito/asp/upload_json.asp', fileManagerJson : '../kindedito/asp/file_manager_json.asp', allowFileManager : true, themeType : 'simple', 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(); }); </script> |
作者: relten, 发布日期: 2014-08-14 16:22:30 |
<script charset="utf-8" src="/editor/kindeditor.js"></script> <script charset="utf-8" src="/editor/lang/zh_CN.js"></script> <script> var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="explain"]', { uploadJson: '../Editor/asp/upload_json.asp', fileManagerJson: '../Editor/asp/file_manager_json.asp', allowFileManager: true, afterChange: function() { this.sync(); }, afterBlur: function() { this.sync(); } }); }); </script>试试这个 |
回复 |