Visual editor - making sure only wlxml-tags are put into edit pane navigation
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 22 Apr 2013 14:38:55 +0000 (16:38 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 22 Apr 2013 14:38:55 +0000 (16:38 +0200)
modules/visualEditor.js

index 5e26978..82ee13e 100644 (file)
@@ -261,7 +261,7 @@ rng.modules.visualEditor = function(sandbox) {
                 id: node.parent().attr('id')\r
             }\r
             var children = [];\r
                 id: node.parent().attr('id')\r
             }\r
             var children = [];\r
-            node.children().each(function() {\r
+            node.children('[wlxml-tag]').each(function() {\r
                 var child = $(this);\r
                 children.push({repr: child.attr('wlxml-tag') + ' / ' + (child.attr('wlxml-class') || '[[no class]]'), id: child.attr('id')});\r
             });\r
                 var child = $(this);\r
                 children.push({repr: child.attr('wlxml-tag') + ' / ' + (child.attr('wlxml-class') || '[[no class]]'), id: child.attr('id')});\r
             });\r