X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b729636a8bfe248aa9890a6f3bef56cbbab885fd..f87e25a2b4d41deadb65308b278496ad2ff995d3:/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 f3494a0..006bf0f 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -18,10 +18,15 @@ return function(sandbox) { 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++) {