In this case I have a containing an iFrame that has an editor, mooEditable. I clone the element with IDs, destroy old one and insert new one where needed.
Javascript component doesn't work anymore at this stage. If there is a generic way to do this, it would be terrific if you share it.
TIA