Preventing browser from removing node when last character gets deleted via backspace
[fnpeditor.git] / modules / rng / rng.js
index 276b0db..643b683 100644 (file)
@@ -96,7 +96,7 @@ return function(sandbox) {
     \r
     views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());\r
     addMainTab('Edytor', 'editor', views.visualEditing.getAsView());\r
     \r
     views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());\r
     addMainTab('Edytor', 'editor', views.visualEditing.getAsView());\r
-    \r
+    addMainTab(gettext('Source'), 'sourceEditor',  '');\r
     addMainTab('Historia', 'history', views.diffLayout.getAsView());\r
     \r
     sandbox.getDOM().append(views.mainLayout.getAsView());\r
     addMainTab('Historia', 'history', views.diffLayout.getAsView());\r
     \r
     sandbox.getDOM().append(views.mainLayout.getAsView());\r
@@ -147,7 +147,7 @@ return function(sandbox) {
         },\r
         restoringStarted: function(event) {\r
             sandbox.getModule('mainBar').setCommandEnabled('save', false);\r
         },\r
         restoringStarted: function(event) {\r
             sandbox.getModule('mainBar').setCommandEnabled('save', false);\r
-            sandbox.getModule('indicator').showMessage(gettext('Restoring version ' + event.version + '...'));\r
+            sandbox.getModule('indicator').showMessage(gettext('Restoring version ') + event.version + '...');\r
         },\r
         historyItemAdded: function(item) {\r
             sandbox.getModule('documentHistory').addHistory([item], {animate: true});\r
         },\r
         historyItemAdded: function(item) {\r
             sandbox.getModule('documentHistory').addHistory([item], {animate: true});\r