change responsehandling to be ready for PR #12892
This commit is contained in:
parent
faa524faec
commit
57a7a3d6d8
1 changed files with 1 additions and 1 deletions
|
@ -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) + ' ');
|
||||||
|
|
Loading…
Reference in a new issue