Update view/js/dropzone-factory.js

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/13092/head
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
1 changed files with 1 additions and 1 deletions

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