From a9da2ddb356fb313c1a5b45b073eec2c5a282649 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 22 Apr 2013 16:38:55 +0200 Subject: [PATCH] Visual editor - making sure only wlxml-tags are put into edit pane navigation --- modules/visualEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/visualEditor.js b/modules/visualEditor.js index 5e26978..82ee13e 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -261,7 +261,7 @@ rng.modules.visualEditor = function(sandbox) { id: node.parent().attr('id') } var children = []; - node.children().each(function() { + node.children('[wlxml-tag]').each(function() { var child = $(this); children.push({repr: child.attr('wlxml-tag') + ' / ' + (child.attr('wlxml-class') || '[[no class]]'), id: child.attr('id')}); }); -- 2.20.1