Skip to content

Commit

Permalink
Fixed #111 重复粘贴问题
Browse files Browse the repository at this point in the history
  • Loading branch information
akof1314 committed Sep 24, 2017
1 parent 31f1df1 commit ef3913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md_editor_core.js
Expand Up @@ -115,7 +115,7 @@ $(function() {
});

// 监听粘贴事件
this.cm.getInputField().addEventListener("paste", function (e) {
this.cm.on("paste", function (_cm, e) {
var clipboardData = event.clipboardData || window.clipboardData;
if (clipboardData) {
if (clipboardData.types == "Files") {
Expand Down

0 comments on commit ef3913a

Please sign in to comment.