diff --git a/public/cache.manifest b/public/cache.manifest index b44a7f5b..7690f770 100644 --- a/public/cache.manifest +++ b/public/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -#Date Sun Oct 20 2013 00:00:12 +#Date Sun Oct 20 2013 14:51:35 CACHE: res/worker.js diff --git a/public/recovery.html b/public/recovery.html new file mode 100644 index 00000000..654cb3e4 --- /dev/null +++ b/public/recovery.html @@ -0,0 +1,87 @@ + + + +
++ The download of your documents and settings will start in 5 seconds... +
+To import your documents and settings back in StackEdit:
++ ++ + +Menu
+ + +Settings
+ +Utils
+ + +Import docs & settings
+
+ +
+ + +You are using the new secured platform. If you want to recover your documents from the old platform, click here.
', "Please clickNext
to take a quick tour." ].join(""),
+ content: [ '', 'You are using the new secured platform. If you want to recover your documents from the old platform click here.
', "Please clickNext
to take a quick tour." ].join(""),
placement: "bottom"
}, {
element: ".navbar .action-create-file",
@@ -22370,7 +22374,7 @@ if (hljs.LANGUAGES.glsl = function(e) {
});
}, r;
}), define("text!html/bodyIndex.html", [], function() {
- return ' \n\n\n\n\n\n \n\n\nYou are using the new secured platform. If you want to recover your documents from the old platform, click here.
', + 'You are using the new secured platform. If you want to recover your documents from the old platform click here.
', 'Please clickNext
to take a quick tour.'
].join(""),
placement: 'bottom',
diff --git a/public/res/html/bodyIndex.html b/public/res/html/bodyIndex.html
index 31087b85..4da4e1d6 100644
--- a/public/res/html/bodyIndex.html
+++ b/public/res/html/bodyIndex.html
@@ -1044,7 +1044,8 @@
Load default settings Reset application
+ class="icon-fire icon-white"> Reset application StackEdit recovery
Old platform recovery
diff --git a/public/res/libs/ace_mode.js b/public/res/libs/ace_mode.js
index dd3c63a6..47bdbdfb 100644
--- a/public/res/libs/ace_mode.js
+++ b/public/res/libs/ace_mode.js
@@ -63,11 +63,14 @@ var isIndentingList = false;
if(isIndentingList === true && (state == "listblock" || state == "listblock-start") && /^\s*(?:[-+*]|\d+\.)\s+$/.test(line)) {
// When hitting enter twice in a listblock, remove the previous line
var rows = editor.$getSelectedRows();
- if (rows.last > 2) {
+ if (rows.last > 1) {
var range = new Range(
rows.last - 2, editor.session.getLine(rows.last - 2).length,
rows.last - 1, editor.session.getLine(rows.last - 1).length);
- editor.session.remove(range);
+ var previousLine = editor.session.getTextRange(range);
+ if(/^\s*(?:[-+*]|\d+\.)\s+$/.test(previousLine)) {
+ editor.session.remove(range);
+ }
}
isIndentingList = false;
return this.$getIndent(line);
diff --git a/public/res/main.js b/public/res/main.js
index b8a2a14c..4600af0d 100644
--- a/public/res/main.js
+++ b/public/res/main.js
@@ -138,6 +138,10 @@ if (baseDir.indexOf('-min') !== -1) {
// media-importer, we are actually loading all the modules
require(["jquery", "core", "eventMgr", "synchronizer", "publisher", "mediaImporter", "css",
themeModule, ], function($, core, eventMgr) {
+
+ if(typeof(noStart) !== 'undefined' && noStart) {
+ return;
+ }
$(function() {
diff --git a/views/error_404.html b/views/error_404.html
index 4e1effb5..87d46b82 100644
--- a/views/error_404.html
+++ b/views/error_404.html
@@ -2,7 +2,7 @@
-