change responsehandling to be ready for PR #12892

This commit is contained in:
Jakobus Schürz 2023-03-17 15:17:55 +01:00
parent faa524faec
commit 57a7a3d6d8

View file

@ -13,7 +13,7 @@ var DzFactory = function () {
init: function() { init: function() {
this.on('success', function(file, serverResponse) { this.on('success', function(file, serverResponse) {
const targetTextarea = document.getElementById(textareaElementId); const targetTextarea = document.getElementById(textareaElementId);
const bbcodeString = $(serverResponse).find('div#content').text(); const bbcodeString = serverResponse;
if (targetTextarea.setRangeText) { if (targetTextarea.setRangeText) {
//if setRangeText function is supported by current browser //if setRangeText function is supported by current browser
targetTextarea.setRangeText(' ' + $.trim(bbcodeString) + ' '); targetTextarea.setRangeText(' ' + $.trim(bbcodeString) + ' ');