Fix html editor destroy