define([
'libs/jquery',
'./saveDialog',
- 'wlxml/wlxml'
+ 'wlxml/wlxml',
+ 'wlxml/extensions/list/list'
-], function($, saveDialog, wlxml) {
+], function($, saveDialog, wlxml, listExtension) {
'use strict';
var history = sandbox.getBootstrappedData().history;
var wlxmlDocument = wlxml.WLXMLDocumentFromXML(sandbox.getBootstrappedData().document);
+
+ wlxmlDocument.registerExtension(listExtension);
function readCookie(name) {
success: function(data) {
document_version = data.current_version;
reloadHistory();
+ wlxmlDocument.loadXML(data.document);
sandbox.publish('documentReverted', data);
},
});