From: Aleksander Ɓukasz Date: Thu, 8 Aug 2013 07:36:30 +0000 (+0200) Subject: Use display property defined in CSS for elements of class item X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a668392f4bf349515340b8691c059267f2b51996 Use display property defined in CSS for elements of class item This preserves item bullets --- diff --git a/modules/documentCanvas/canvas/wlxmlManagers.js b/modules/documentCanvas/canvas/wlxmlManagers.js index 8973a6c..b28b022 100644 --- a/modules/documentCanvas/canvas/wlxmlManagers.js +++ b/modules/documentCanvas/canvas/wlxmlManagers.js @@ -19,8 +19,8 @@ var DocumentElementWrapper = function(documentElement) { } this.setDisplayStyle = function(displayStyle) { - documentElement.dom().css('display', displayStyle); - documentElement._container().css('display', displayStyle); + documentElement.dom().css('display', displayStyle || ''); + documentElement._container().css('display', displayStyle || ''); }; this.tag = function() { @@ -48,6 +48,8 @@ var getDisplayStyle = function(tag, klass) { return 'none'; if(tag === 'span') return 'inline'; + if(klass === 'item') + return null; return 'block'; }