prepare for html view in editor.