1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 09:48:05 +00:00

Fix: add twEditor attribute to paste events handled by codemirror (#7281)

This commit is contained in:
Saq Imtiaz
2023-02-28 09:35:15 +01:00
committed by GitHub
parent 8d39ce95eb
commit 5bce35d90b
2 changed files with 7 additions and 1 deletions

View File

@@ -220,9 +220,15 @@ function CodeMirrorEngine(options) {
}
});
this.cm.on("paste",function(cm,event) {
event["twEditor"] = true;
self.widget.handlePasteEvent.call(self.widget,event);
});
} else {
this.cm.on("paste",function(cm,event){
event["twEditor"] = true;
});
}
;
}
/*