TINY-1544: more pulling out to separate functions
TINY-1544: more pulling out to separate functions

danielpunkass/tinymce,tinymce/tinymce,FernCreek/tinymce,TeamupCom/tinymce,tinymce/tinymce,tinymce/tinymce,FernCreek/tinymce,danielpunkass/tinymce,TeamupCom/tinymce,FernCreek/tinymce,danielpunkass/tinymce