X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/30363302f46e0ed1f6a4c214b2e04d7c8e12ae73..75d2183aafd4b2d3e94c17f6c3c8ee0d8a4738e4:/src/editor/modules/data/data.js diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index 7f60004..f3494a0 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -1,9 +1,10 @@ define([ 'libs/jquery', './saveDialog', - 'wlxml/wlxml' + 'wlxml/wlxml', + 'wlxml/extensions/list/list' -], function($, saveDialog, wlxml) { +], function($, saveDialog, wlxml, listExtension) { 'use strict'; @@ -15,6 +16,8 @@ return function(sandbox) { var history = sandbox.getBootstrappedData().history; var wlxmlDocument = wlxml.WLXMLDocumentFromXML(sandbox.getBootstrappedData().document); + + wlxmlDocument.registerExtension(listExtension); function readCookie(name) { @@ -108,6 +111,7 @@ return function(sandbox) { success: function(data) { document_version = data.current_version; reloadHistory(); + wlxmlDocument.loadXML(data.document); sandbox.publish('documentReverted', data); }, });