You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why juice not use the informations stored in the style attributes for:
applyHeightAttributes
applyWidthAttributes
styleToAttribute
e.g. <img style="width: 100px"> will remain <img style="width: 100px">.
But
<style>
img {
width: 100px;
}
</style>
<img>
Will become <img style="width: 100px" width="100px">
Or have I overlooked an option there?
The reason I ask is because, when styling e.g. html emails using a WYSIWYG editor like CKEditor, then then most of the styles are applied using the style tag.
If this option does not exists right now then I would suggest to add it.
The text was updated successfully, but these errors were encountered:
tndev
changed the title
applyHeightAttributes and related functions do not apply for style attributes
styleToAttribute and related functions do not apply for style attributes
Dec 23, 2016
The reason is that juice is conceived as a way to inline CSS into style tags, so it doesn't currently take any information from style tags and apply them elsewhere. It is a valid point though, so if someone wants to create a PR to update it that would be welcome.
Is there a reason why
juice
not use the informations stored in thestyle
attributes for:e.g.
<img style="width: 100px">
will remain<img style="width: 100px">
.But
Will become
<img style="width: 100px" width="100px">
Or have I overlooked an option there?
The reason I ask is because, when styling e.g. html emails using a WYSIWYG editor like CKEditor, then then most of the styles are applied using the
style
tag.If this option does not exists right now then I would suggest to add it.
The text was updated successfully, but these errors were encountered: