X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/9f6d1535529f8d33732ecaac54bbd56afb536b0f..872eb8cad5640b85c8d9286ef0af0237bf825f00:/src/editor/modules/data/document.js 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