主题: Append问题,kindeditor所在div被移动后的问题
作者: lan, 发布日期: 2015-03-06 15:43:09, 浏览数: 2183

操作系统: win7    

浏览器版本: ie10

KindEditor版本: 4.1.10

BUG再现步骤:
1.<div id='aa'>

<div id='content'><textarea id='ke'>说明此处为kindeditor</textarea></div>

</div>

<div id='bb'></div>
2.$('#bb').append($('#content'));//将kinedtor称动到id为bb的DIV块
3.editor.html('我要赋值')

报错Uncaught TypeError: Cannot read property 'getSelection' of undefined
 
期望结果: 请问是否为bug?如果不移动kineditor,赋值成功

发表新帖 发表回复