layerssss/paste.js

怎么去掉默认的粘贴事件?

xhanglizhu opened this issue · 1 comments

现在想将复制的内容粘贴到div[contenteditable],发现会出现两次同样的内容。
这个有什么好的解决思路?pasteText

$(ele).on('paste', function (ev) { ev.preventDefault(); })