主题: 创建多个编辑器并启用autoHeight后IE6/IE8下只加载第一个 |
作者: 碧海幽虹, 发布日期: 2013-10-17 12:10:52, 浏览数: 2765 |
操作系统:
Windows XP 浏览器版本: IE6,IE8 KindEditor版本: 4.1.9 BUG再现步骤: 1.<script src="../inc/jquery.js"></script> <script charset="utf-8" src="../editor/kindeditor-min.js"></script> <script charset="utf-8" src="../editor/lang/zh_CN.js"></script> <script charset="utf-8" src="../editor/plugins/code/prettify.js"></script> 2.<script> KindEditor.ready(function(K){var options={ uploadJson:'../editor/asp/upload_json.asp', fileManagerJson:'../editor/asp/file_manager_json.asp', allowFileManager:true, autoHeightMode:true, width:"700px", height:"350px", afterCreate:function(){this.loadPlugin('autoheight');this.sync();}, afterBlur:function(){this.sync();} } K.create('textarea[name="cont"],textarea[name="cont_e"]',options); prettyPrint(); }); </script>
3.<textarea name="cont"></textarea>
<textarea name="cont_e"></textarea>
4.在IE6/IE8下,只能加载第一个编辑器。需要刷新页面才能全部加载 错误信息:
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) 期望结果: autoHeight模式开启后IE6/IE8下能正确加载所有的编辑器 |