]> git.mxchange.org Git - friendica.git/commitdiff
Update view/js/dropzone-factory.js
authorRaroun <Raroun@users.noreply.github.com>
Fri, 5 May 2023 18:40:59 +0000 (20:40 +0200)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 18:40:59 +0000 (20:40 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
view/js/dropzone-factory.js

index 160024ed0a34106970e770228f3069e342e47782..f33ec9c6df5e7bc86fe16924d1c72efa80b0cfdc 100644 (file)
@@ -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);