From 2980da61646a1a597219608b9e9b4910525a65bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 9 Dec 2013 12:38:15 +0100 Subject: [PATCH 1/1] editor: bringing back tag changing via node pane --- src/editor/modules/nodePane/nodePane.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/editor/modules/nodePane/nodePane.js b/src/editor/modules/nodePane/nodePane.js index d44c967..80d4b87 100644 --- a/src/editor/modules/nodePane/nodePane.js +++ b/src/editor/modules/nodePane/nodePane.js @@ -17,12 +17,7 @@ return function(sandbox) { var target = $(e.target); var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'Tag' : 'Class', value = target.val().replace(/-/g, '.'); - - if(attr === 'Class') { - //currentNode.document.transform('setClass', {node: currentNode, klass: value}); - currentNode.setClass(value); - } - //currentNode['set' + attr](value); + currentNode['set' + attr](value); }); return { -- 2.20.1