Stackedit/res/settings.js
2013-09-09 01:08:55 +01:00

41 lines
1.2 KiB
JavaScript

define([
"underscore",
"config"
], function(_) {
var settings = {
layoutOrientation: "horizontal",
lazyRendering: true,
editorFontFamily: 'Menlo, Consolas, "Courier New", Courier, monospace',
editorFontSize: 12,
defaultContent: "\n\n\n> Written with [StackEdit](" + MAIN_URL + ").",
commitMsg: "Published with " + MAIN_URL,
template: [
'<!DOCTYPE html>\n',
'<html>\n',
'<head>\n',
'<meta charset="utf-8">\n',
'<title><%= documentTitle %></title>\n',
'<link rel="stylesheet" href="',
MAIN_URL,
'css/main-min.css" />\n',
'<script type="text/javascript" src="',
MAIN_URL,
'lib/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>\n',
'</head>\n',
'<body><div class="container"><%= documentHTML %></div></body>\n',
'</html>'
].join(""),
sshProxy: SSH_PROXY_URL,
extensionSettings: {}
};
try {
_.extend(settings, JSON.parse(localStorage.settings));
}
catch(e) {
// Ignore parsing error
}
return settings;
});