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:
@@ -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;
|
||||
});
|
||||
}
|
||||
;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user