主题: ASP同页面调用编辑器和上传图片怎么弄
作者: linkdot, 发布日期: 2013-03-12 13:33:05, 浏览数: 2837

<link rel="stylesheet" href="../Keditor/themes/default/default.css" />
 <link rel="stylesheet" href="../Keditor/plugins/code/prettify.css" />
 <script charset="utf-8" src="../Keditor/kindeditor.js"></script>
 <script charset="utf-8" src="../Keditor/lang/zh_CN.js"></script>
 <script charset="utf-8" src="../Keditor/plugins/code/prettify.js"></script>
 <script>
  KindEditor.ready(function(K) {
   var editor1 = K.create('textarea[name="content"]', {
    cssPath : '../Keditor/plugins/code/prettify.css',
    uploadJson : '../Keditor/asp/upload_json.asp',
    fileManagerJson : '../Keditor/asp/file_manager_json.asp',
    allowFileManager : true,
    afterCreate : function() {
     var self = this;
     K.ctrl(document, 13, function() {
      self.sync();
      K('form[name=form1]')[0].submit();
     });
     K.ctrl(self.edit.doc, 13, function() {
      self.sync();
      K('form[name=form1]')[0].submit();
     });
    }
   });
   prettyPrint();
  });
 </script>

 

这是我调用编辑器的。如果要在一个页面调用上传窗口。。怎么接

 

 

发表新帖 发表回复