Opened 11 years ago

Closed 11 years ago

#10230 closed Bug (expired)

Uncaught TypeError: Cannot read property '$' of null - on resize

Reported by: alan blount Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


When swapping out editors via ajax load of DOM html/js, after replacement and ckeditor instatiation, resizing the viewport triggers several repetitions of the error:

"Uncaught TypeError: Cannot read property '$' of null"

It happens that the input names and thus the instanceName are the same string across AJAX loads (PageBody)

I tried destroying the instance before triggering the AJAX request/replacement but that didn't seem to fix it, got a different error:

Uncaught TypeError: Cannot call method 'clearCustomData' of null triggered with

Anyway - this error can be recreated by swapping out the editor with AJAX load and then resizing the viewport (resizing the developer tools is sufficient).

User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.33 Safari/537.31

CKeditor: timestamp:"D26D",version:"4.0.2",revision:"5339059",

Change History (2)

comment:1 Changed 11 years ago by Jakub Ś

Status: newpending

Could you provide reduced sample HTML page showing this problem - something that can be put in samples folder and will allow recreating this issue.


  1. Please check AJAX sample - it shows how to create and destroy editor properly which needs to be done if you want to reuse element. Most likely you are not cleaning everything between new AJAX requests.
  2. If you have different elements with same name please use different id for them. CKEditor should use this id to create unique instance name -!/api/CKEDITOR.editor-property-name

comment:2 Changed 11 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy