Abstract iframe/tinymce interactions to separate functions.