From 8e0830cb8d24b4d81d12a4df96d03c9d78f88343 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 22 Apr 2013 16:12:42 +0200 Subject: [PATCH] wip: toggle tags button --- modules/visualEditor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/visualEditor.js b/modules/visualEditor.js index 39859a8..5e26978 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -179,6 +179,9 @@ rng.modules.visualEditor = function(sandbox) { toggleGrid: function(toggle) { this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle); this.gridToggled = toggle; + }, + toggleTags: function(toggle) { + } }; @@ -317,6 +320,8 @@ rng.modules.visualEditor = function(sandbox) { toolbarButtonToggled: function(btn, toggle) { if(btn === 'grid') view.toggleGrid(toggle); + if(btn === 'tags') + view.toggleTags(toggle); }, nodeHovered: function(node) { view.highlightNode(node); -- 2.20.1