fixing delete and update on tiny mce editor