标签:
<IFRAME ID="kindeditor1" SRC="kindeditor/asp/demo.asp?id=nr&style=standard" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME> 位置换一下 <input name="nr" type="hidden" id="nr" value="<%=request.form("nr")%>" /> input 在前面,你先这样试一下,如果还不行,那就是你后台的Asp代码有问题了。 换成下面的。 <input name="nr" type="hidden" id="nr" value="<%=request.form("nr")%>" /> <IFRAME ID="kindeditor1" SRC="kindeditor/asp/demo.asp?id=nr&style=standard" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
错误的写法 :
<IFRAME ID="kindeditor1" SRC="kindeditor/asp/demo.asp?id=nr&style=standard" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME
正确的写法。直接在网页中写上js代码
<form name="myform" method="post" action="saveaddproduct.asp?action=add" OnSubmit="return checkkk()" ><link rel="stylesheet" href="kindeditor-4.1/themes/default/default.css" />。。。。。。。。。。。。。。中间各种input <link rel="stylesheet" href="kindeditor-4.1/plugins/code/prettify.css" /> <script charset="utf-8" src="kindeditor-4.1/kindeditor.js"></script> <script charset="utf-8" src="kindeditor-4.1/lang/zh_CN.js"></script> <script charset="utf-8" src="kindeditor-4.1/plugins/code/prettify.js"></script> <script> KindEditor.ready(function(K) { var editor1 = K.create('textarea[name="bookcontent"]', { cssPath : 'kindeditor-4.1/plugins/code/prettify.css', uploadJson : 'kindeditor-4.1/asp/upload_json.asp', fileManagerJson : 'kindeditor-4.1/asp/file_manager_json.asp', allowFileManager : true, afterCreate : function() { var self = this; K.ctrl(document, 13, function() { self.sync(); K('form[name=myform]')[0].submit(); }); K.ctrl(self.edit.doc, 13, function() { self.sync(); K('form[name=myform]')[0].submit(); }); } }); prettyPrint(); }); </script> <textarea name="bookcontent" style="width:700px;height:200px;visibility:hidden;"> </textarea><span style="font-family: Arial, Helvetica, sans-serif;"></form> 注意 bookcontent和 myform的对应关系</span>
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/zhangfeng1133/article/details/47810519