From 3f2481f424d491a87088f0ccb3f1a9ef8266b098 Mon Sep 17 00:00:00 2001 From: Raroun Date: Fri, 5 May 2023 20:40:59 +0200 Subject: [PATCH] Update view/js/dropzone-factory.js Co-authored-by: Hypolite Petovan --- view/js/dropzone-factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/js/dropzone-factory.js b/view/js/dropzone-factory.js index 160024ed0a..f33ec9c6df 100644 --- a/view/js/dropzone-factory.js +++ b/view/js/dropzone-factory.js @@ -26,7 +26,7 @@ var DzFactory = function (max_imagesize) { const targetTextarea = document.getElementById(textareaElementId); if (targetTextarea.setRangeText) { //if setRangeText function is supported by current browser - targetTextarea.setRangeText(' ' + serverResponse + ' '); + targetTextarea.setRangeText(serverResponse); } else { targetTextarea.focus(); document.execCommand('insertText', false /*no UI*/, serverResponse); -- 2.39.5