主题: 当编辑框在隐藏元素中,通过JS控制使用隐藏元素显示,这种情况下,上传不能关闭 |
作者: 123, 发布日期: 2014-09-30 11:34:04, 浏览数: 1498 |
操作系统:
window 浏览器版本: firefox 32.0.3 KindEditor版本: 4.1.10 BUG再现步骤: <!doctype html> <html> <head> <meta charset="utf-8" /> <title>Simple Examples</title> <style> form { margin: 0; } textarea { display: block; } </style> <link rel="stylesheet" href="../themes/default/default.css" /> <script charset="utf-8" src="../kindeditor-min.js"></script> <script charset="utf-8" src="../lang/zh_CN.js"></script> <script> var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="content"]', { resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : true, items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link'] }); }); </script> </head> <body> <h3>默认模式</h3> <div id="test"> <form> <textarea name="content" style="width:700px;height:200px;visibility:hidden;">KindEditor</textarea> </form> </div> <input type="button" id="btn" onclick="test()" value="显示"> <script> function test(){ document.getElementById('test').style.display = 'block'; } </script> </body> 期望结果: |