1
1
Fork 0
removed $.trim because it removes \n from return value of media/photo/upload
This commit is contained in:
Raroun 2023-05-05 19:30:26 +02:00 committed by GitHub
parent 148f12580b
commit ad127f4739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*/, '\n' + serverResponse + '\n');
}
});
this.on('complete', function(file) {