diff --git a/view/js/dropzone-factory.js b/view/js/dropzone-factory.js index 4f14551be8..f33ec9c6df 100644 --- a/view/js/dropzone-factory.js +++ b/view/js/dropzone-factory.js @@ -26,10 +26,10 @@ var DzFactory = function (max_imagesize) { const targetTextarea = document.getElementById(textareaElementId); if (targetTextarea.setRangeText) { //if setRangeText function is supported by current browser - targetTextarea.setRangeText(' ' + $.trim(serverResponse) + ' '); + targetTextarea.setRangeText(serverResponse); } else { targetTextarea.focus(); - document.execCommand('insertText', false /*no UI*/, '\n' + $.trim(serverResponse) + '\n'); + document.execCommand('insertText', false /*no UI*/, serverResponse); } }); this.on('complete', function(file) {