X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cf7c3b4fb3a419476a0d7f6118d3ba9a3fd0c809..ad64ee06bd810b02f60b474b12d397eb4e95bdff:/modules/documentCanvas/canvas/canvas.js diff --git a/modules/documentCanvas/canvas/canvas.js b/modules/documentCanvas/canvas/canvas.js index 8882c1c..19c2a3f 100644 --- a/modules/documentCanvas/canvas/canvas.js +++ b/modules/documentCanvas/canvas/canvas.js @@ -320,8 +320,9 @@ $.extend(Canvas.prototype, { }, toXML: function() { - var parent = $('
'); - this.doc().toXML(parent, 0) + var parent = $('
'), + parts = this.doc().toXML(0); + parent.append(parts); return parent.html(); } });