editor: canvas - consider list subclasses when styling lists
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sat, 14 Dec 2013 17:34:59 +0000 (18:34 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 15 Dec 2013 21:32:52 +0000 (22:32 +0100)
src/editor/modules/documentCanvas/canvas/wlxmlManagers.js
src/editor/modules/documentCanvas/nodes.less

index c643a88..27b4605 100644 (file)
@@ -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';
index 7f01f5e..35c7ece 100644 (file)
@@ -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;