From: Aleksander Ɓukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Date: Mon, 22 Apr 2013 14:38:55 +0000 (+0200)
Subject: Visual editor - making sure only wlxml-tags are put into edit pane navigation
X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a9da2ddb356fb313c1a5b45b073eec2c5a282649?ds=sidebyside;hp=b4bf723adc4b54dcc0a6eefb592fbbe9795a39f0

Visual editor - making sure only wlxml-tags are put into edit pane navigation
---

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')});
             });