Update view/js/dropzone-factory.js

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Raroun 2023-05-05 20:40:59 +02:00 committed by GitHub
parent 789ae23ce5
commit 3f2481f424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ var DzFactory = function (max_imagesize) {
const targetTextarea = document.getElementById(textareaElementId); const targetTextarea = document.getElementById(textareaElementId);
if (targetTextarea.setRangeText) { if (targetTextarea.setRangeText) {
//if setRangeText function is supported by current browser //if setRangeText function is supported by current browser
targetTextarea.setRangeText(' ' + serverResponse + ' '); targetTextarea.setRangeText(serverResponse);
} else { } else {
targetTextarea.focus(); targetTextarea.focus();
document.execCommand('insertText', false /*no UI*/, serverResponse); document.execCommand('insertText', false /*no UI*/, serverResponse);