X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5e64f92aabe77137fde16fa8aab604fe1fce5f62..7b4405539ac7c11a11b5259b4f968e1289f0b2a7:/modules/rng/rng.js diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 276b0db..7c39d0f 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -96,7 +96,7 @@ return function(sandbox) { views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView()); addMainTab('Edytor', 'editor', views.visualEditing.getAsView()); - + addMainTab(gettext('Source'), 'sourceEditor', ''); addMainTab('Historia', 'history', views.diffLayout.getAsView()); sandbox.getDOM().append(views.mainLayout.getAsView()); @@ -147,7 +147,7 @@ return function(sandbox) { }, restoringStarted: function(event) { sandbox.getModule('mainBar').setCommandEnabled('save', false); - sandbox.getModule('indicator').showMessage(gettext('Restoring version ' + event.version + '...')); + sandbox.getModule('indicator').showMessage(gettext('Restoring version ') + event.version + '...'); }, historyItemAdded: function(item) { sandbox.getModule('documentHistory').addHistory([item], {animate: true}); @@ -259,6 +259,9 @@ return function(sandbox) { } else { sandbox.getModule('documentCanvas').wrapSelectionWithNewNode(wlxmlTag, wlxmlClass); } + }, + command: function(cmd, meta) { + sandbox.getModule('documentCanvas').command(cmd, meta); } };