Update view/js/dropzone-factory.js
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
789ae23ce5
commit
3f2481f424
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue