Return to Snippet

Revision: 32507
at September 27, 2010 09:52 by Meander365


Initial Code
$(function(){ 
        $('#dialog').dialog({
                autoOpen:false,
                close:function(){
                        var editor = $('#dialog textarea').ckeditorGet();
                        editor.destroy();
                }
        });
});

Initial URL
http://forum.jquery.com/topic/ckeditor-in-ui-dialog

Initial Description
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.

Initial Title
FCKEditor and the jQuery UI Dialog

Initial Tags
jquery

Initial Language
jQuery