fix: destroy of editor should be done on element destroy, not on scope destroy