X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b5fab6c09bccfcdd09ed63f6fddfab6486d1d919..b1de2ef622519ea790e89bc690f2c4d84e93adec:/modules/documentCanvas/commands.js 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); }