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);
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);