X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b53df8a58d8dafedf5daf3275243acb8ae3c99f0..b6f093b37e3b4d72890f028f1d0d4285958c045e:/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); }