don't use Editor.beforeRemove

it seems to be broken!

fixes #198