开发者

CKEditor throws exception: 'n' is null or not an object

开发者 https://www.devze.com 2022-12-14 04:03 出处:网络
I have traced t开发者_运维问答he root of this exception to the sourcearea plugin of CKEditor v3.0.1.It occurs (occasionally) after the user has entered content into the editor and he then clicks on th

I have traced t开发者_运维问答he root of this exception to the sourcearea plugin of CKEditor v3.0.1. It occurs (occasionally) after the user has entered content into the editor and he then clicks on the small arrow in the upper right hand of the editor (close toolbar arrow). Has anyone seen this problem? We are using IE6.

onResize(){
   textarea.hide();  // EXCEPTION occurs because textarea is null
   textarea.setStyle( 'height', holderElement.$.clientheight + 'px');
   textarea.show();
};

After the problem begins (n = textarea = null), it occurs every time the right arrow is clicked.


As Pekka suggested, I now check for null and call it a day.

0

精彩评论

暂无评论...
验证码 换一张
取 消