JQuery HTML Editor issue

JQuery HTML Editor issue

The blow script is used to hide and display an Html Editor.

var editor = $('#hider').children().detach();
$('#hider').prepend(editor);

It seems browsers (FireFox, Safari, Chrome) recreate all iframe objects after inserting a part of the page hierarchy back into the DOM. The main iframe is created without the content (or with the "false" text string taken from the iframe's src attribute), and our event handlers become undefined. After that, the control stops working completely.

However, in IE, the iframe isn't recreated, and the Html Editor works partially (part of the editor's commands are still broken).\

Is this basic Javascript DOM issue or is there a way around it?

Thanks


    • Topic Participants

    • shane