update editor selection only if it has focus - fix related to problem with adding link
Fix range selection in IE8
Merge branch 'ie8fix'