define([
"underscore",
"config",
"storage"
], function(_) {
var settings = {
layoutOrientation: "horizontal",
lazyRendering: true,
editorFontFamily: 'Menlo, Consolas, "Courier New", Courier, monospace',
editorFontSize: 12,
maxWidth: 960,
defaultContent: "\n\n\n> Written with [StackEdit](" + MAIN_URL + ").",
commitMsg: "Published with " + MAIN_URL,
gdriveFullAccess: true,
template: [
'\n',
'\n',
'
\n',
'\n',
'<%= documentTitle %>\n',
'\n',
'\n',
'\n',
'<%= documentHTML %>
\n',
''
].join(""),
pdfTemplate: [
'\n',
'\n',
'\n',
'\n',
'<%= documentTitle %>\n',
'\n',
'\n',
'\n',
'\n',
'<%= documentHTML %>\n',
''
].join(""),
pdfPageSize: 'A4',
sshProxy: SSH_PROXY_URL,
shortcuts: {},
extensionSettings: {}
};
try {
_.extend(settings, JSON.parse(localStorage.settings));
}
catch(e) {
// Ignore parsing error
}
return settings;
});