Removing bullet/enum from list item containing nested list
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 28 Jun 2013 08:36:51 +0000 (10:36 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 28 Jun 2013 08:36:51 +0000 (10:36 +0200)
modules/documentCanvas/canvas.js
modules/documentCanvas/nodes.less
modules/documentCanvas/tests/canvas.test.js

index 9177968..7d75e9e 100644 (file)
@@ -166,7 +166,7 @@ Canvas.prototype.listCreate = function(options) {
     \r
     var toret;\r
     if(parentNode && parentNode.isOfClass('list-items')) {\r
-        list.wrap('<div wlxml-tag="div" wlxml-class="item">');\r
+        list.wrap('<div wlxml-tag="div" wlxml-class="item" class="canvas-silent-item">');\r
         toret = list.parent();\r
     } else {\r
         toret = list;\r
index af084a7..4e6a817 100644 (file)
@@ -98,6 +98,14 @@ span[wlxml-tag] {
     }\r
 }\r
 \r
+.canvas-silent-item {\r
+    display: block !important;\r
+    counter-increment: none !important;\r
+    &:before {\r
+        content: normal !important;\r
+    }\r
+}\r
+\r
 [wlxml-class="table"] {\r
 \r
     display: table;\r
index 57fb308..d336192 100644 (file)
@@ -205,7 +205,7 @@ define([
             assertDomEqual(c.getContent(), utils.cleanUp('\\r
                     <div wlxml-tag="div" wlxml-class="list-items">\\r
                         <div wlxml-tag="div" wlxml-class="item">alice</div>\\r
-                        <div wlxml-tag="div" wlxml-class="item">\\r
+                        <div wlxml-tag="div" wlxml-class="item" class="canvas-silent-item">\\r
                             <div wlxml-tag="div" wlxml-class="list-items">\\r
                                 <div wlxml-tag="div" wlxml-class="item">cat</div>\\r
                                 <div wlxml-tag="div" wlxml-class="item">dog</div>\\r