X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d1effc78cd6e71573f29f7901c598cabc3c2aaf8..22e9258db6c11e6e0b042e142836cdb21399cc7b:/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js index 1078218..66b2ea0 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js @@ -41,8 +41,7 @@ var DocumentElementWrapper = function(documentElement) { eventBus.trigger.apply(eventBus, arguments); }; - this.node = documentElement.data('wlxmlNode'); - + this.node = documentElement.wlxmlNode; }; var getDisplayStyle = function(tag, klass) { @@ -55,6 +54,9 @@ var getDisplayStyle = function(tag, klass) { if(klass && klass.substr(0, 4) === 'item') { return null; } + if(klass === 'gap') { + return 'inline'; + } return 'block'; };