'))})),editor.insertContent(e),images.length=0),dialog.close()})),document.addEventListener("dragover",(function(e){return e.preventDefault()})),document.querySelector("#main").addEventListener("drop",(function(e){e.preventDefault(),checkImage(e.dataTransfer.files)})),list.addEventListener("click",(function(e){var t=e.target;t.classList.contains("remove")&&(e=Array.from(list.querySelectorAll(".remove")).indexOf(t),list.removeChild(t.parentElement),images.splice(e,1))}));