From a1ae06320a95c53a8d91a67cd150f282dc1897a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 23 Jul 2019 13:14:11 +0200 Subject: [PATCH] check for copy and cut event --- packages/tiptap/src/Utils/ComponentView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/tiptap/src/Utils/ComponentView.js b/packages/tiptap/src/Utils/ComponentView.js index e22cc30e4..c72d52b18 100644 --- a/packages/tiptap/src/Utils/ComponentView.js +++ b/packages/tiptap/src/Utils/ComponentView.js @@ -141,10 +141,12 @@ export default class ComponentView { } } + const isCopy = event.type === 'copy' const isPaste = event.type === 'paste' + const isCut = event.type === 'cut' const isDrag = event.type.startsWith('drag') || event.type === 'drop' - if ((draggable && isDrag) || isPaste) { + if ((draggable && isDrag) || isCopy || isPaste || isCut) { return false }