/ Published in: jQuery
When you load content into a jquery ui dialog box which contains a textarea element that you use FCKeditor on. The second time you open the dialog, FCKeditor fails to load.
You have to destroy it when you close the dialog box.
You have to destroy it when you close the dialog box.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function(){ $('#dialog').dialog({ autoOpen:false, close:function(){ var editor = $('#dialog textarea').ckeditorGet(); editor.destroy(); } }); });
URL: http://forum.jquery.com/topic/ckeditor-in-ui-dialog