Subscribe to commands in TextEditorComponent so they are unsubscribed!

We need to unsubscribe when the editor is removed. This causes #3651

On master see the issue by moving an editor from one pane to another. All the commands will be duplicated.