Removed Monaco font due to issue with ACE. Fixes #210

This commit is contained in:
benweet 2013-12-03 20:55:49 +00:00
parent 0f17f1ad0a
commit 4dc4340a75
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@ define([
var settings = {
layoutOrientation: "horizontal",
lazyRendering: true,
editorFontFamily: '"Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace',
editorFontFamily: '"Lucida Sans Typewriter", "Lucida Console", Menlo, "Bitstream Vera Sans Mono", Courier, monospace',
editorFontSize: 13,
maxWidth: 960,
defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").",

View File

@ -210,6 +210,17 @@ define([
version = "v12";
}
// Upgrade from v12 to v13
if(version == "v12") {
if(_.has(localStorage, 'settings')) {
settings = JSON.parse(localStorage.settings);
// Have to reset the font because of Monaco issue with ACE
delete settings.editorFontFamily;
localStorage.settings = JSON.stringify(settings);
}
version = "v13";
}
localStorage.version = version;
return localStorage;
});