Removed Monaco font due to issue with ACE. Fixes #210
This commit is contained in:
parent
0f17f1ad0a
commit
4dc4340a75
@ -7,7 +7,7 @@ define([
|
|||||||
var settings = {
|
var settings = {
|
||||||
layoutOrientation: "horizontal",
|
layoutOrientation: "horizontal",
|
||||||
lazyRendering: true,
|
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,
|
editorFontSize: 13,
|
||||||
maxWidth: 960,
|
maxWidth: 960,
|
||||||
defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").",
|
defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").",
|
||||||
|
@ -210,6 +210,17 @@ define([
|
|||||||
version = "v12";
|
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;
|
localStorage.version = version;
|
||||||
return localStorage;
|
return localStorage;
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user