Fix resizing problem in Firefox

See https://www.mediawiki.org/wiki/Extension_talk:WYSIWYG#Can.27t_resize_images_with_the_cursor_.28Firefox_31.0.29_46995