操作系统: Win7
浏览器版本: IE9
KindEditor版本: KindEditor 4.1.7
BUG再现步骤:
1.打开多图上传按钮,直接关闭就会出现在,很奇怪,有时有,有时没!我直接使用Demo改了下
<!doctype html>
<html>
<head><meta charset="utf-8" /><title>
KindEditor ASP.NET
</title><link rel="stylesheet" href="../themes/default/default.css" /><link rel="stylesheet" href="../plugins/code/prettify.css" />
<script charset="utf-8" src="../kindeditor.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script charset="utf-8" src="../plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('#content1', {
cssPath : '../plugins/code/prettify.css',
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
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();
});
}
});
var test1 = K.create('#Textarea1', {
cssPath: '../plugins/code/prettify.css',
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
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();
});
}
});
var test2 = K.create('#Textarea2', {
cssPath: '../plugins/code/prettify.css',
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
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();
});
}
});
var test3 = K.create('#Textarea3', {
cssPath: '../plugins/code/prettify.css',
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
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();
});
}
});
var editorA = K.create('#eiA', {
resizeType: 1,
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
allowFileManager: true,
allowPreviewEmoticons: false,
allowImageUpload: true,
items: [
'source', 'preview', '|', 'undo', 'redo', 'fontname', 'fontsize', 'quickformat', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', "multiimage", 'link', 'fullscreen']
});
var editorB = K.create('#eiB', {
resizeType: 1,
uploadJson: '/Image/CreateImage',
fileManagerJson: '/Image/ImageManage',
allowFileManager: true,
allowPreviewEmoticons: false,
allowImageUpload: true,
items: [
'source', 'preview', '|', 'undo', 'redo', 'fontname', 'fontsize', 'quickformat', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', "multiimage", 'link', 'fullscreen']
});
prettyPrint();
});
</script>
</head>
<body>
<span id="Label1"></span>
<form method="post" action="demo.aspx" id="example">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMjk3NTkyNzM2D2QWAgIDDw8WAh4EVGV4dGRkZGS3cv6+ZC5bkDX2CDbK1ZlHEiy3FYbn0eoRBcuza+5n9w==" />
</div>
<div class="aspNetHidden">
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAiaCsw4Cnt1dXYwCukMg2bOgCSCt0bcCrNxn+pHK2e0XKMQNRpAYOd32irG3PHv6+GOPIrWTIQEF0coAy9CegXJ4OQUMYIxi5FTyGP26BRbrkDTYOVFUdZWouUB3fOmU2IQB6MeQd5P8K9QPtYyiTLizfg78Z8BXhXifTCAVkevdweOOtGA1/GFQV+Yveb/bquqZvABEn3E7Sdva6yofRWq" />
</div>
<textarea name="content1" id="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<br />
<textarea name="eiA" id="eiA" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<textarea name="eiB" id="eiB" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<textarea name="Textarea1" id="Textarea1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<textarea name="Textarea2" id="Textarea2" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<textarea name="Textarea3" id="Textarea3" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
<input type="submit" name="Button1" value="提交内容" id="Button1" /> (提交快捷键: Ctrl + Enter)
</form>
</body>
</html>
报错内容:
SCRIPT5007: 无法获取属性“SetReturnValue”的值: 对象为 null 或未定义
script block (42), 行1 字符153
document.getElementById("SWFUpload_0").SetReturnValue("<undefined/>")
SCRIPT5007: 无法获取属性“SetReturnValue”的值: 对象为 null 或未定义
script block (42), 行1 字符153
instance[name] = function () {
return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
}
SCRIPT5007: 无法获取属性“SetReturnValue”的值: 对象为 null 或未定义
script block (42), 行1 字符153
无止尽的报错,非要强关IE
期望结果: