mailtrain/client/static/mosaico/editor.html
Tomas Bures 48dcf2c701 Mosaico upgraded to 0.17.5
Work started on confirmation dialogs displayed when one navigates from a page with unsaved changes
2019-05-08 19:54:19 +02:00

50 lines
1.8 KiB
HTML

<!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="rs/mosaico-libs-and-tinymce.min.js?v=0.17.5"></script>
<script src="rs/mosaico.min.js?v=0.17.5"></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="rs/mosaico-libs-and-tinymce.min.css?v=0.17.5" />
<link rel="stylesheet" href="rs/mosaico-material.min.css?v=0.17.5" />
</head>
<body class="mo-standalone">
</body>
</html>