mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Added idea to allow <style>
This commit is contained in:
parent
6c795d4ced
commit
be35a541c3
1 changed files with 10 additions and 2 deletions
|
|
@ -158,7 +158,16 @@ export const
|
||||||
replaceWithChildren(oElement);
|
replaceWithChildren(oElement);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
// Idea to allow CSS
|
||||||
|
if ('STYLE' === name) {
|
||||||
|
msgId = '#rl-msg-061eb4d647771be4185943ce91f0039d';
|
||||||
|
oElement.textContent = oElement.textContent
|
||||||
|
.replace(/[^{}]+{/g, m => msgId + ' ' + m.replace(',', ', '+msgId+' '))
|
||||||
|
.replace(/(background-)color:[^};]+/g, '');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
*/
|
||||||
if ('BODY' === name) {
|
if ('BODY' === name) {
|
||||||
forEachObjectEntry(tasks, (name, cb) => {
|
forEachObjectEntry(tasks, (name, cb) => {
|
||||||
if (hasAttribute(name)) {
|
if (hasAttribute(name)) {
|
||||||
|
|
@ -174,7 +183,6 @@ export const
|
||||||
delAttribute('width');
|
delAttribute('width');
|
||||||
oStyle.maxWidth = value + 'px';
|
oStyle.maxWidth = value + 'px';
|
||||||
oStyle.width = '100%';
|
oStyle.width = '100%';
|
||||||
// oStyle.removeProperty('width');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue