document.querySelector("div.pasteEditor").addEventListener("paste", function(e) { e.preventDefault(); var text = e.clipboardData.getData("text/plain"); document.execCommand("insertText", false, text); });
Comments
Join the discussionNo comments yet. Be the first to comment.