From: Raroun Date: Fri, 5 May 2023 18:40:59 +0000 (+0200) Subject: Update view/js/dropzone-factory.js X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f2481f424d491a87088f0ccb3f1a9ef8266b098;p=friendica.git Update view/js/dropzone-factory.js Co-authored-by: Hypolite Petovan --- 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);