Set text/plain as default MIME type

This commit is contained in:
benweet 2014-08-28 00:11:08 +01:00
parent ba90a57646
commit ae85a242ee
2 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,7 @@ define([
defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").",
commitMsg: "Published with " + constants.MAIN_URL,
conflictMode: 'merge',
markdownMimeType: 'text/x-markdown',
markdownMimeType: 'text/plain',
gdriveMultiAccount: 1,
gdriveFullAccess: true,
dropboxFullAccess: true,

View File

@ -255,6 +255,16 @@ define([
version = "v20";
}
if(version == 'v20') {
if(_.has(localStorage, 'settings')) {
settings = JSON.parse(localStorage.settings);
// Force use of text/plain
delete settings.markdownMimeType;
localStorage.settings = JSON.stringify(settings);
}
version = "v21";
}
localStorage.version = version;
return localStorage;
});