From: Jakobus Schürz Date: Fri, 17 Mar 2023 14:17:55 +0000 (+0100) Subject: change responsehandling to be ready for PR #12892 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57a7a3d6d803d0df59d17241e2d0bcce96abf275;p=friendica.git change responsehandling to be ready for PR #12892 --- diff --git a/view/js/dropzone-factory.js b/view/js/dropzone-factory.js index a5010b95e6..1b2a293374 100644 --- a/view/js/dropzone-factory.js +++ b/view/js/dropzone-factory.js @@ -13,7 +13,7 @@ var DzFactory = function () { init: function() { this.on('success', function(file, serverResponse) { const targetTextarea = document.getElementById(textareaElementId); - const bbcodeString = $(serverResponse).find('div#content').text(); + const bbcodeString = serverResponse; if (targetTextarea.setRangeText) { //if setRangeText function is supported by current browser targetTextarea.setRangeText(' ' + $.trim(bbcodeString) + ' ');