Improved editor switching

Unfortunately, no text syncing yet.