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
1 changed files with 1 additions and 1 deletions

View 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) + ' ');