Skip to content

Commit 6a9a910

Browse files
authored
Merge pull request #1004 from maykinmedia/feature/2075-mailpreview
[#2075] Updated maileditor
2 parents 1442cc9 + ff6040a commit 6a9a910

File tree

6 files changed

+74
-4
lines changed

6 files changed

+74
-4
lines changed

requirements/base.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ django-view-breadcrumbs
3838
markdown
3939
django_better_admin_arrayfield
4040
humanfriendly
41-
git+https://github.com/maykinmedia/mail-editor.git@a5743ff0f997a91d8202015b79966533f014f5bd#egg=mail-editor
41+
git+https://github.com/maykinmedia/mail-editor.git@255bb498b1a0ddee12be4913ed90e7ccdc79e7a0#egg=mail-editor
4242
fontawesomefree
4343
django-timeline-logger
4444
django-csp

requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ lxml==4.9.1
347347
# maykin-python3-saml
348348
# svglib
349349
# xmlsec
350-
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@a5743ff0f997a91d8202015b79966533f014f5bd
350+
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@255bb498b1a0ddee12be4913ed90e7ccdc79e7a0
351351
# via -r requirements/base.in
352352
mail-parser==3.15.0
353353
# via django-yubin

requirements/ci.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ lxml==4.9.1
605605
# pyquery
606606
# svglib
607607
# xmlsec
608-
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@a5743ff0f997a91d8202015b79966533f014f5bd
608+
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@255bb498b1a0ddee12be4913ed90e7ccdc79e7a0
609609
# via
610610
# -c requirements/base.txt
611611
# -r requirements/base.txt

requirements/dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ lxml==4.9.1
696696
# pyquery
697697
# svglib
698698
# xmlsec
699-
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@a5743ff0f997a91d8202015b79966533f014f5bd
699+
mail-editor @ git+https://github.com/maykinmedia/mail-editor.git@255bb498b1a0ddee12be4913ed90e7ccdc79e7a0
700700
# via
701701
# -c requirements/ci.txt
702702
# -r requirements/ci.txt
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http: //www.w3.org/1999/xhtml">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
7+
<!-- Fallback styling only, use inline -->
8+
<style>
9+
#outlook a{
10+
padding:0;
11+
}
12+
body{
13+
width:100% !important;
14+
}
15+
body{
16+
-webkit-text-size-adjust:none;
17+
}
18+
body{
19+
margin:0;
20+
padding:0;
21+
}
22+
img{
23+
border:none;
24+
font-size:14px;
25+
font-weight:bold;
26+
height:auto;
27+
line-height:100%;
28+
outline:none;
29+
text-decoration:none;
30+
text-transform:capitalize;
31+
}
32+
a {
33+
color: #059EC2;
34+
}
35+
36+
@media (max-width: 580px) {
37+
h1, h2, h3, h4, h5, h6,
38+
a, p,
39+
img {
40+
width: 100%!important;
41+
height: auto!important;
42+
margin-left: 0!important;
43+
}
44+
}
45+
</style>
46+
<!-- End fallback styling -->
47+
</head>
48+
49+
<body style="
50+
-ms-text-size-adjust: 100%;
51+
-webkit-text-size-adjust: 100%;
52+
background-color: #fff;
53+
color: #000;
54+
font-family: Arial, sans-serif;
55+
font-size: 17px;
56+
font-weight: normal;
57+
min-width: 100%;
58+
margin: 0;
59+
line-height: 1.2;
60+
padding: 0;
61+
text-align: left;
62+
width: 100% !important;
63+
">
64+
65+
<center>
66+
{{ content }}
67+
</center>
68+
</body>
69+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ default }}

0 commit comments

Comments
 (0)