}\r
\r
views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());\r
- addMainTab('rng2 test', 'rng2test', views.visualEditing.getAsView());\r
+ addMainTab('Edytor', 'editor', views.visualEditing.getAsView());\r
\r
sandbox.getDOM().append(views.mainLayout.getAsView());\r
\r
}\r
};\r
\r
- eventHandlers.visualEditor = {\r
- ready: function() {\r
- sandbox.getModule('visualEditor').setDocument(sandbox.getModule('data').getDocument());\r
- addMainTab(gettext('Visual'), 'visual', sandbox.getModule('visualEditor').getView());\r
- \r
- }\r
- };\r
- \r
eventHandlers.data = {\r
ready: function() {\r
views.mainLayout.setView('mainView', views.mainTabs.getAsView());\r
\r
- _.each(['visualEditor', 'sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator'], function(moduleName) {\r
+ _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator'], function(moduleName) {\r
sandbox.getModule(moduleName).start();\r
});\r
},\r
},\r
\r
nodeHovered: function(node) {\r
+ sandbox.getModule('documentCanvas').highlightNode(node.attr('id'));\r
sandbox.getModule('nodeFamilyTree').highlightNode(node.attr('id'));\r
+ sandbox.getModule('nodeBreadCrumbs').highlightNode(node.attr('id'));\r
+ \r
},\r
\r
nodeBlured: function(node) {\r
+ sandbox.getModule('documentCanvas').dimNode(node.attr('id'));\r
sandbox.getModule('nodeFamilyTree').dimNode(node.attr('id'));\r
+ sandbox.getModule('nodeBreadCrumbs').dimNode(node.attr('id'));\r
}\r
};\r
\r