Fix for weird redactor behavior in webkit

Fix for #753