X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/71b7ba4d1d17adc39165914016fa892671cc4316..e3d38a12c37e706077d9a42194fb80eb05e12658:/src/editor/modules/data/data.js diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index 896fc56..5e45b26 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -8,26 +8,12 @@ define([ return function(sandbox) { - var doc = sandbox.getBootstrappedData().document; var document_id = sandbox.getBootstrappedData().document_id; var document_version = sandbox.getBootstrappedData().version; var history = sandbox.getBootstrappedData().history; var wlxmlDocument = wlxml.WLXMLDocumentFromXML(sandbox.getBootstrappedData().document); - - if(doc === '') { - doc = '\n\ - \n\ - \n\ -
\n\ - '; - } - + function readCookie(name) { var nameEQ = escape(name) + "="; @@ -65,14 +51,11 @@ return function(sandbox) { sandbox.publish('ready'); }, getDocument: function() { - return doc; - }, - getDocument2: function() { return wlxmlDocument; }, commitDocument: function(newDocument, reason) { - doc = newDocument; - sandbox.publish('documentChanged', doc, reason); + // doc = newDocument; + // sandbox.publish('documentChanged', doc, reason); }, saveDocument: function() {