fixed html editor bug