Cleanup \MailSo\Base\HtmlUtils::BuildHtml()

This commit is contained in:
the-djmaze 2022-03-03 09:54:39 +01:00
parent eb98c0713a
commit bb7d8e85a0
3 changed files with 62 additions and 199 deletions

View file

@ -42,7 +42,6 @@ const
.replace(/<span[^>]*>\s*<\/span>/gi,'')
.trim();
tpl.querySelectorAll('a:empty,span:empty').forEach(el => el.remove());
tpl.querySelectorAll('[data-x-div-type]').forEach(el => el.replaceWith(getFragmentOfChildren(el)));
if (isPaste) {
tpl.querySelectorAll(removeElements).forEach(el => el.remove());
tpl.querySelectorAll('*').forEach(el => {

View file

@ -345,13 +345,6 @@ html.rl-no-preview-pane {
height: 100%;
padding: 10px;
div[data-x-div-type=html] {
height: 100%;
div[data-x-div-type=body] {
height: 100%;
}
}
a {
color: blue;
text-decoration: underline;
@ -377,11 +370,6 @@ html.rl-no-preview-pane {
&.html {
div[data-x-div-type=body] {
/*padding: 15px;*/
margin: 15px;
}
img {
max-width: 90vw;
}