From: Aleksander Ɓukasz Date: Mon, 22 Apr 2013 14:12:42 +0000 (+0200) Subject: wip: toggle tags button X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/8e0830cb8d24b4d81d12a4df96d03c9d78f88343?ds=inline wip: toggle tags button --- 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);