Opening same TE in editor toggles editor, fixes #936 (lib)