Nuke things we don't care about

and make the editor (optionally) take in the element.