mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
fix(tree): pasting in editor on middle click (closes #5812)
This commit is contained in:
@@ -253,6 +253,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.$tree.on("auxclick", (e) => {
|
||||||
|
// Prevent middle click from pasting in the editor.
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
this.$treeSettingsPopup = this.$widget.find(".tree-settings-popup");
|
this.$treeSettingsPopup = this.$widget.find(".tree-settings-popup");
|
||||||
this.$hideArchivedNotesCheckbox = this.$treeSettingsPopup.find(".hide-archived-notes");
|
this.$hideArchivedNotesCheckbox = this.$treeSettingsPopup.find(".hide-archived-notes");
|
||||||
|
|||||||
Reference in New Issue
Block a user