the correct change would have been to change this line:
r.moveTo(r,q);r.resizeTo(n,o);
to:
if (navigator.userAgent.toLowerCase().indexOf('chrome') == -1) { r.moveTo(r,q);r.resizeTo(n,o);}
this issue is that you have a different CKEditor version so the code is slightly different.
dont change the variable name, just wrap the if statement around the existing one.