Introducing two types of lists: bullet & enum
[fnpeditor.git] / modules / documentCanvas / canvasManager.js
index 71c9342..7e34e29 100644 (file)
@@ -222,7 +222,7 @@ Manager.prototype.command = function(command, meta) {
         }\r
         else {\r
             if(!this.canvas.nodeInsideList({node: node})) {\r
-                this.canvas.listCreate({start: node, end: canvasNode.create(pos.focusNode)});\r
+                this.canvas.listCreate({start: node, end: canvasNode.create(pos.focusNode), type: meta});\r
                 this.selectNode(node, {movecaret: 'end'});\r
                 this.sandbox.publish('contentChanged');\r
             }\r