X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/71b7ba4d1d17adc39165914016fa892671cc4316..cd02846fc9db03e6d9a2add20150b8808a66d850:/src/editor/modules/data/data.js?ds=inline 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() {