X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6b27d5301b4995add87d5734e6de2d974007a196..fc9e27c7b46b1d0b865e1ba759cd8ff20c71e0c5:/src/editor/modules/data/document.js?ds=inline 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