'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);
+ sandbox.getPlugins().forEach(function(plugin) {
+ if(plugin.documentExtension) {
+ wlxmlDocument.registerExtension(plugin.documentExtension);
+ }
+ });
function readCookie(name) {
- /* global escape, unescape */
+ /* global escape, unescape, document */
var nameEQ = escape(name) + '=';
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {