fix text boundary for Editor