Some refactoring for tinymce events