Fix
[fnpeditor.git] / modules / documentCanvas / commands.js
index 738ab76..955ba48 100644 (file)
@@ -107,6 +107,9 @@ commands.register('newNodeRequested', function(canvas, params) {
                 });
             }
         }
                 });
             }
         }
+    } else if(canvas.getCurrentNodeElement()) {
+        var el = canvas.getCurrentNodeElement().wrapWithNodeElement({tag: params.wlxmlTag, klass: params.wlxmlClass});
+        canvas.setCurrentElement(el);
     }
 
 
     }