define([ "underscore", "constants", "storage", ], function (_, constants, storage) { var settings = { layoutOrientation: "horizontal", editMode: 'ltr', lazyRendering: true, editorFontClass: 'font-rich', fontSizeRatio: 1, maxWidthRatio: 1, defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").", commitMsg: "Published with " + constants.MAIN_URL, conflictMode: 'merge', markdownMimeType: 'text/x-markdown', gdriveMultiAccount: 1, gdriveFullAccess: true, dropboxFullAccess: true, githubFullAccess: 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, extensionSettings: {} }; try { _.extend(settings, JSON.parse(storage.settings)); } catch (e) { // Ignore parsing error } return settings; });