define([ "underscore", "constants", "storage", ], function (_, constants, storage) { var settings = { layoutOrientation: "horizontal", lazyRendering: true, 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 + ").", commitMsg: "Published with " + constants.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: constants.SSH_PROXY_URL, shortcuts: {}, extensionSettings: {} }; try { _.extend(settings, JSON.parse(storage.settings)); } catch (e) { // Ignore parsing error } return settings; });