}\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
\r
- eventHandlers.rng2 = {\r
- ready: function() {\r
- addMainTab('rng2 test', 'rng2test', sandbox.getModule('rng2').getView());\r
- \r
- }\r
- }\r
- \r
eventHandlers.mainBar = {\r
ready: function() {\r
views.mainLayout.setView('topPanel', sandbox.getModule('mainBar').getView());\r