X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7c8d3ac9807cf36af4c16aa26841104914c2033e..91a84926407f9f10739b2423c449bc98a57ea424:/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'); } });