X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b5fab6c09bccfcdd09ed63f6fddfab6486d1d919..2d37cb23154783cc89f2ff286405d02e594e0e46:/modules/documentCanvas/commands.js?ds=inline diff --git a/modules/documentCanvas/commands.js b/modules/documentCanvas/commands.js index 738ab76..955ba48 100644 --- a/modules/documentCanvas/commands.js +++ b/modules/documentCanvas/commands.js @@ -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); }