forked from voidlabs/mosaico
-
Notifications
You must be signed in to change notification settings - Fork 2
/
editor.html
63 lines (57 loc) · 2.53 KB
/
editor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=1024, initial-scale=1">
<link rel="canonical" href="http://mosaico.io" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<script src="dist/vendor/jquery.min.js"></script>
<script src="dist/vendor/knockout.js"></script>
<script src="dist/vendor/jquery-ui.min.js"></script>
<script src="dist/vendor/jquery.ui.touch-punch.min.js"></script>
<script src="dist/vendor/load-image.all.min.js"></script>
<script src="dist/vendor/canvas-to-blob.min.js"></script>
<script src="dist/vendor/jquery.iframe-transport.js"></script>
<script src="dist/vendor/jquery.fileupload.js"></script>
<script src="dist/vendor/jquery.fileupload-process.js"></script>
<script src="dist/vendor/jquery.fileupload-image.js"></script>
<script src="dist/vendor/jquery.fileupload-validate.js"></script>
<script src="dist/vendor/knockout-jqueryui.min.js"></script>
<script src="dist/vendor/tinymce.min.js"></script>
<script src="dist/mosaico.min.js?v=0.16"></script>
<script>
$(function() {
if (!Mosaico.isCompatible()) {
alert('Update your browser!');
return;
}
// var basePath = window.location.href.substr(0, window.location.href.lastIndexOf('/')).substr(window.location.href.indexOf('/','https://'.length));
var basePath = window.location.href;
if (basePath.lastIndexOf('#') > 0) basePath = basePath.substr(0, basePath.lastIndexOf('#'));
if (basePath.lastIndexOf('?') > 0) basePath = basePath.substr(0, basePath.lastIndexOf('?'));
if (basePath.lastIndexOf('/') > 0) basePath = basePath.substr(0, basePath.lastIndexOf('/'));
var plugins;
// A basic plugin that expose the "viewModel" object as a global variable.
// plugins = [function(vm) {window.viewModel = vm;}];
var ok = Mosaico.init({
imgProcessorBackend: basePath+'/img/',
emailProcessorBackend: basePath+'/dl/',
titleToken: "MOSAICO Responsive Email Designer",
fileuploadConfig: {
url: basePath+'/upload/',
// messages??
}
}, plugins);
if (!ok) {
console.log("Missing initialization hash, redirecting to main entrypoint");
document.location = ".";
}
});
</script>
<link rel="stylesheet" href="dist/mosaico-material.min.css?v=0.10" />
<link rel="stylesheet" href="dist/vendor/notoregular/stylesheet.css" />
</head>
<body class="mo-standalone">
</body>
</html>