Tidy up msre_edit source