Clear editor when opening edit window to avoid old content to be displayed.