mirror of
https://github.com/friendica/friendica
synced 2024-11-17 22:23:41 +00:00
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);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue