Fixing a bug where the editor's focus() function is never being called.