CKeditor - Destroy instance

CKeditor - Destroy instance

Hello

Does anyone here know anything about CKEditor?

I've got it installed on my site and it works great in FireFox and Chrome. But IE 9 is causing problems.

For some reason I can't destroy the CKEditor instance in IE 9. Following is my script:

  1.     $("#ckSubmit").click(function(){
  2.         // grab reply editor data
  3.         var editor_data = CKEDITOR.instances.replyTxtarea.getData();
  4.        
  5.         // Push getActivityID and editor_data into array
  6.             // getActivityID; is activityID variable from $(document).on('click','.details_button',function() {
  7.         var postRply_Array = new Array();
  8.         postRply_Array.push({activityID:getActivityID, replyTxt:editor_data});
  9.                
  10.         $.post("ol_postActivity.php",{postReply_Ary:postRply_Array},function(data){
  11.             $.getJSON("ol_LogPosts.php", {actID:getActivityID}, function(data) {
  12.             $('#postDiv').html(data);
  13.             });
  14.             $("#filterBy").val(1);
  15.         });
  16.             // set textarea data to empty, then destroy the ckeditor instance so it's completely cleared out.
  17.             CKEDITOR.instances.replyTxtarea.setData('');
  18.             CKEDITOR.instances.replyTxtarea.destroy();
  19.            
  20.             $("#replyTxtarea").hide();
  21.             $(".postReplyBttn").show();
  22.             $("#ckSubmit").removeClass('ol_shownTR').addClass("ol_hidden");       
  23.     });
Everything works great (in all browsers) accept line 18: CKEDITOR.instances.replyTxtarea.destroy();

Does anyone have any idea what is going on? The line right before it uses basically the same syntax to setData(''); and empty the CKEDITOR instance. But - IE 9 is NOT destroying the instance.

OH - one other thing. In IE - the script stops executing at line 18 - because the following jQuery lines, hiding elements, do not execute.

Thanks in advance:

Pavilion