我已经将这个异常的根源追溯到CKEditor v3.0.1的sourcearea插件。它(偶尔)发生在用户将内容输入编辑器之后,然后他单击编辑器右上角的小箭头(关闭工具栏箭头)。有人见过这个问题吗?我们正在使用 IE6。
onResize(){
textarea.hide(); // EXCEPTION occurs because textarea is null
textarea.setStyle( 'height', holderElement.$.clientheight + 'px');
textarea.show();
};
问题开始后(n = textarea = null),每次点击右箭头都会出现。
最佳答案
正如 Pekka 所建议的,我现在检查 null 并收工。
关于javascript - CKEditor 抛出异常 : 'n' is null or not an object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1881812/