fix the bug when double click on bold and italic
focus on editor