focus editor before calling execCommand(), fixes #17195 on trunk