Make simple html editor work in ajax requests