Subscribe to editor commands 

We need to unsubscribe when the editor is removed!

Closes #3651