mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Idea for #1641
This commit is contained in:
parent
b2b3dac35b
commit
e867000ff7
1 changed files with 8 additions and 0 deletions
|
|
@ -312,9 +312,17 @@ export const
|
||||||
// https://github.com/the-djmaze/snappymail/issues/1125
|
// https://github.com/the-djmaze/snappymail/issues/1125
|
||||||
tmpl.content.querySelectorAll('form,button').forEach(oElement => replaceWithChildren(oElement));
|
tmpl.content.querySelectorAll('form,button').forEach(oElement => replaceWithChildren(oElement));
|
||||||
|
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/1641
|
||||||
let body = tmpl.content.querySelector('.mail-body');
|
let body = tmpl.content.querySelector('.mail-body');
|
||||||
[...tmpl.content.querySelectorAll('.mail-body + .mail-body')]
|
[...tmpl.content.querySelectorAll('.mail-body + .mail-body')]
|
||||||
.forEach(oElement => body.append(...oElement.childNodes));
|
.forEach(oElement => body.append(...oElement.childNodes));
|
||||||
|
/*
|
||||||
|
.forEach(oElement => {
|
||||||
|
let bq = createElement('blockquote');
|
||||||
|
bq.append(...oElement.childNodes);
|
||||||
|
body.replaceWith(bq);
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
[...tmpl.content.querySelectorAll('*')].forEach(oElement => {
|
[...tmpl.content.querySelectorAll('*')].forEach(oElement => {
|
||||||
const name = oElement.tagName,
|
const name = oElement.tagName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue