Fixed inserting quotes fail if editor is not visible yet