- Using Ajax I can instantiate editor once.
On second pass, it fails on the .destroy call with the following error.
This behavior is *only* occurring in IE8 - have tried running IE8 in IE7 mode - no change.
Works perfectly in Firefox.
http://xxx.xxx.com/ckeditor/ckeditor.js
Script to destroy/create editor I am using:-
UPDATE: Found Workaround:- Use instead of Destroy

Re: Destroy AJAX IE7/8 Error
Re: Destroy AJAX IE7/8 Error
/* * IE BUG: Removing the editor DOM elements while the selection is inside * the editing area would break IE7/8's selection system. So we need to put * the selection back to the parent document without scrolling the window. * (#3812) */ if ( CKEDITOR.env.ie ) { container.setStyle( 'display', 'none' ); var $range = document.body.createTextRange(); $range.moveToElementText( container.$ ); try { // Putting the selection to a display:none element - this will certainly // fail. But! We've just put the selection document back to the parent // document without scrolling the window! $range.select(); } catch ( e ) {} };Error is on
as called from line 480 of editor.js
I am using IE6.
My source code is
$(this).unbind('mousedown', hasFocus); var editor = CKEDITOR.instances[elm.id]; if (editor) { editor.destroy(); Sys.Debug.trace("Editor " + elm.id + " destroyed"); }Since the bug fix mentions IE7/8 only I will add a check for