mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Added idea to allow <style>
This commit is contained in:
parent
6c795d4ced
commit
be35a541c3
|
@ -158,7 +158,16 @@ export const
|
|||
replaceWithChildren(oElement);
|
||||
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) {
|
||||
forEachObjectEntry(tasks, (name, cb) => {
|
||||
if (hasAttribute(name)) {
|
||||
|
@ -174,7 +183,6 @@ export const
|
|||
delAttribute('width');
|
||||
oStyle.maxWidth = value + 'px';
|
||||
oStyle.width = '100%';
|
||||
// oStyle.removeProperty('width');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue