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
Html code generated from suneditor containing img tag works great everywhere except in outlook mail where size value set in style attribute gets ignored.
For instance with an image real width 500px, this adds the image with a width 500px in outlook and 300px everywhere else. <img src="myImage-width-500.jpg" style="width:300px;">
whereas this works and display an image 300px <img src="myImage-width-500.jpg" width="300" style="width:300px;">
Would it be possible to set (when defined) width and/or height attribute in image plugin setSize function (not only the value in style) ?
I tried to parse and fix the generated html but this is much less efficient than manipulating the img tag when generated.
I was not able to find a clean way to register any js code to do it on the SUNEDITOR object.
The text was updated successfully, but these errors were encountered:
Html code generated from suneditor containing img tag works great everywhere except in outlook mail where size value set in style attribute gets ignored.
For instance with an image real width 500px, this adds the image with a width 500px in outlook and 300px everywhere else.
<img src="myImage-width-500.jpg" style="width:300px;">
whereas this works and display an image 300px
<img src="myImage-width-500.jpg" width="300" style="width:300px;">
Would it be possible to set (when defined) width and/or height attribute in image plugin setSize function (not only the value in style) ?
I tried to parse and fix the generated html but this is much less efficient than manipulating the img tag when generated.
I was not able to find a clean way to register any js code to do it on the SUNEDITOR object.
The text was updated successfully, but these errors were encountered: