TINY-939: rewrote the selection logic a bit
TINY-939: rewrote the selection logic a bit

gencer/tinymce,gencer/tinymce,FernCreek/tinymce,danielpunkass/tinymce,danielpunkass/tinymce,leofeyer/tinymce,danielpunkass/tinymce,adaptiffdesigns/tinymce,FernCreek/tinymce,TeamupCom/tinymce,adaptiffdesigns/tinymce,TeamupCom/tinymce,MediehusetTek/tinymce,tinymce/tinymce,tinymce/tinymce,leofeyer/tinymce,FernCreek/tinymce,MediehusetTek/tinymce,tinymce/tinymce