﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8545	Uncaught JS errors when destroying editor/textarea before fully loaded	Ildefonse		"- Issue a jQuery adapter .ckeditor() call on a dynamically created element
- Destroy the element (e.g. popup, close again, remove from DOM), before the ckeditor() has fully loaded/initialized
- Several errors occur, depending on browser.

Chrome says: Uncaught TypeError: Cannot call method 'setHtml' of null (ckeditor.js, line 127)
Firefox says: p is null
[Break On This Error] (function(){var m;j.add('editingblock'...e==1&&D.getName() in f.$removeEmpty; 

Of course, this only happens when you refresh/empty cache, and the ckeditor resources are not loaded yet. When they are in browser cache, the editor loads too quickly for this to be an issue.

It would be nice however, if there were some (better) checks in place, making sure that the elements are still there. If not, simply abort the loading process gracefully.

Let me know if you need more details."	Bug	closed	Normal		General	3.0	duplicate		chris.ingham@…
