From: Aleksander Ɓukasz Date: Sat, 14 Dec 2013 17:34:59 +0000 (+0100) Subject: editor: canvas - consider list subclasses when styling lists X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/b7d1baeb57e59c30907d272eea8053ab74a8cfbd?ds=sidebyside editor: canvas - consider list subclasses when styling lists --- diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js index c643a88..27b4605 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlManagers.js @@ -50,7 +50,7 @@ var getDisplayStyle = function(tag, klass) { if(tag === 'span') { return 'inline'; } - if(klass === 'item') { + if(klass && klass.substr(0, 4) === 'item') { return null; } return 'block'; diff --git a/src/editor/modules/documentCanvas/nodes.less b/src/editor/modules/documentCanvas/nodes.less index 7f01f5e..35c7ece 100644 --- a/src/editor/modules/documentCanvas/nodes.less +++ b/src/editor/modules/documentCanvas/nodes.less @@ -80,9 +80,9 @@ display:none; } -[wlxml-class="list"] { +[wlxml-class|="list"] { - [wlxml-class="item"] { + [wlxml-class|="item"] { display: list-item; margin-left: 10px; padding-left: 5px;