1
1
Fork 0

Update view/js/dropzone-factory.js

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

View file

@ -29,7 +29,7 @@ var DzFactory = function (max_imagesize) {
targetTextarea.setRangeText(' ' + serverResponse + ' '); targetTextarea.setRangeText(' ' + serverResponse + ' ');
} else { } else {
targetTextarea.focus(); targetTextarea.focus();
document.execCommand('insertText', false /*no UI*/, '\n' + serverResponse + '\n'); document.execCommand('insertText', false /*no UI*/, serverResponse);
} }
}); });
this.on('complete', function(file) { this.on('complete', function(file) {