X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a98948280a27e20a66c70d51c814956d2850c357..0912ecb847ddbbe4b04b7125389dbba026205750:/modules/rng/rng.js?ds=sidebyside diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 0322ca2..308549c 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -22,7 +22,7 @@ return function(sandbox) { } views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView()); - addMainTab('rng2 test', 'rng2test', views.visualEditing.getAsView()); + addMainTab('Edytor', 'editor', views.visualEditing.getAsView()); sandbox.getDOM().append(views.mainLayout.getAsView()); @@ -42,19 +42,11 @@ return function(sandbox) { } }; - eventHandlers.visualEditor = { - ready: function() { - sandbox.getModule('visualEditor').setDocument(sandbox.getModule('data').getDocument()); - addMainTab(gettext('Visual'), 'visual', sandbox.getModule('visualEditor').getView()); - - } - }; - eventHandlers.data = { ready: function() { views.mainLayout.setView('mainView', views.mainTabs.getAsView()); - _.each(['visualEditor', 'sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator'], function(moduleName) { + _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator'], function(moduleName) { sandbox.getModule(moduleName).start(); }); }, @@ -72,13 +64,6 @@ return function(sandbox) { } } - eventHandlers.rng2 = { - ready: function() { - addMainTab('rng2 test', 'rng2test', sandbox.getModule('rng2').getView()); - - } - } - eventHandlers.mainBar = { ready: function() { views.mainLayout.setView('topPanel', sandbox.getModule('mainBar').getView());