Update editor delete node to properly delete the node.

Add a call to delete the node from the editor's this.object, as well as to properly call splice passing in the index of the node to remove from node.parent.children.

Fixes #2427.