X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7c8d3ac9807cf36af4c16aa26841104914c2033e..f8dc1e5b5062456deab01f927e82b753202f31e3:/platforma/static/js/models.js diff --git a/platforma/static/js/models.js b/platforma/static/js/models.js index 7fdca39d..ba2f3ce3 100755 --- a/platforma/static/js/models.js +++ b/platforma/static/js/models.js @@ -262,7 +262,7 @@ Editor.HTMLModel = Editor.Model.extend({ }); }, - putXMLPart: function(elem, data) { + putXMLPart: function(elem, data, callback) { var self = this; var path = elem.attr('x-pointer'); @@ -281,7 +281,7 @@ Editor.HTMLModel = Editor.Model.extend({ // format: 'nl' }, success: function(htmldata) { - elem.html(htmldata); + callback(elem, htmldata); self.set('state', 'dirty'); } });