views:

91

answers:

0

Hi

I am using a CKEditor in a Jquery Dialog... and in Safari the first time it loads it works but each subsequent time it is blank and no buttons or anything else works in the ckeditor...

I have looked at http://stackoverflow.com/questions/2539855/ckeditor-instance-in-a-jquery-dialog and added the suggested dialog-patch.js but it doesn't help

$("#TextDialog").dialog({height:400,width:650, modal:true,closeOnEscape:true, autoOpen:false,
    open: function(event, ui) {
    $("#Text").ckeditor();
    },
    close: function(event, ui) {
        CKEDITOR.remove($("#Text").ckeditorGet());
    }});

That is my code, and it works it all browsers (well Chrome, IE and FF) but not in Safari!