From 7b7243a84d75c4510c660906e3286292a23a6820 Mon Sep 17 00:00:00 2001 From: cracker0dks Date: Wed, 5 Jun 2019 23:30:46 +0200 Subject: [PATCH] dont show alert if we past text to textbox --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index ee2b2cb..9f80132 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -379,8 +379,8 @@ window.addEventListener("paste", function (e) { } } - if (!imgItemFound) { - showBasicAlert("Please Drag&Drop the file into the Whiteboard. (Browsers don't allow copy+past from the filesystem directly)"); + if (!imgItemFound && whiteboard.tool!="text") { + showBasicAlert("Please Drag&Drop the image into the Whiteboard. (Browsers don't allow copy+past from the filesystem directly)"); } } });