I'm trying to get CKEditor to load in a jQuery UI dialog. It works the first time great. If I load the dialog a second time it works in IE but not Firefox 3.6 (despite destroying the editor when closing the dialog). I did find though that if I add an alert in the dialog open it did work.
This source doesn't work (works the first load of the dialog, but I get a blank frozen CKEditor on the second load)
Adding the alert as in below works for every load of the dialog
Here is my close dialog where I destroy the editor:
Thoughts?
This source doesn't work (works the first load of the dialog, but I get a blank frozen CKEditor on the second load)
$('#html-content-edit').bind("dialogopen", function (event, ui) { $('#html-content-edit').find('textarea.html-content-editor').ckeditor().end(); });
Adding the alert as in below works for every load of the dialog
$('#html-content-edit-<%= this.BlockInstance.Id%>').bind("dialogopen", function (event, ui) { alert("hello"); $('#html-content-edit').find('textarea.html-content-editor').ckeditor().end(); });
Here is my close dialog where I destroy the editor:
$('#html-content-edit').bind("dialogbclose", function (event, ui) { $('#editor').ckeditorGet().destroy(); });
Thoughts?