$(document.getElementById("preview").contentWindow.document).on("dragover drop", function(e) { return e.preventDefault(); });