htmleditor cleanup