X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6b27d5301b4995add87d5734e6de2d974007a196..ac50cae92710f684c801ad933b924de2bec2b460:/src/editor/modules/data/document.js?ds=sidebyside diff --git a/src/editor/modules/data/document.js b/src/editor/modules/data/document.js index b0f7c25..15dd608 100644 --- a/src/editor/modules/data/document.js +++ b/src/editor/modules/data/document.js @@ -63,6 +63,20 @@ _.extend(Document.prototype, { } }); -return Document; +var DumbDocument = function() { + Document.apply(this, Array.prototype.slice.call(arguments, 0)); +}; +DumbDocument.prototype = Object.create(Document.prototype); +_.extend(DumbDocument.prototype, { + loadXML: function(xml) { + this._xml = xml; + this.trigger('contentSet'); + }, + toXML: function() { + return this._xml; + } +}); + +return {Document: Document, DumbDocument: DumbDocument}; }); \ No newline at end of file