separate handling for tinymce vs. vanilla