]> git.mxchange.org Git - friendica.git/commitdiff
change responsehandling to be ready for PR #12892
authorJakobus Schürz <jakobus.schuerz@schuerz.at>
Fri, 17 Mar 2023 14:17:55 +0000 (15:17 +0100)
committerJakobus Schürz <jakobus.schuerz@schuerz.at>
Sun, 19 Mar 2023 17:52:46 +0000 (18:52 +0100)
view/js/dropzone-factory.js

index a5010b95e6bc7e266e5d67703e42aefde3bb037c..1b2a2933744ff67ae93a13a4afb10a813d339bc0 100644 (file)
@@ -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) + ' ');