Updated to use new tinymce event api