Update HTML (using style="width:0px", etc.)
Brought to you by:
tranquilized
Thouthand years since HTML has updated.
Option tags (like width, height) even don't have quotes in Semagic, i.e. width="10" height="10". Today's HTML supports styles, i.e. style="width:10px;height:10px;".
Why not to update HTML in Semagic?
Enable HTML tidy in options/editor. That HTML that you see when switching from WYSIWYG mode is direct output of IE control that Semagic uses.
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
Thanks, tranquilized,
It seems to work only in WYSIWYG mode and only after certain actions.
Here's what I do:
1. In WYSIWYG mode I paste the image using Ctrl+M with 'detect image size':
<img title="" src="http://jdimg.com/justhost/transfer-clients.png" height="28" />
Ok, I see height in quotes. Where's width?
2. Then I manually resize the image in WYSIWYG mode:
<img style="HEIGHT: 63px" title="" src= "http://jdimg.com/justhost/transfer-clients.png" width="290" height="28" />
Ok, here's the transformed width, the original height and the transformed height in 'style'.
3. Now in WYSIWYG mode I manually resize the image again:
<img style="WIDTH: 325px; HEIGHT: 88px" title="" src= "http://jdimg.com/justhost/transfer-clients.png" width="290" height="28" />
So how should I use it?
Why caps lock?
Why spaces in 'style'? (— forget this one.)
I don't use WYSIWYG mode at all (it's not handy for me and it always lies), preferring HTML mode + Preview, like, i believe, many others. Why not to make the same (with some fixes) for HTML mode?
Can I get tidy code?
<img src="http://jdimg.com/justhost/transfer-clients.png" style="width:240px;height:28px;border:0;" />
That missing of height for pictures size detection is an error that nobody noticed. Other effects is what IE control and HTMLTidy (if you enabled it)does. I do not know what HTMLTidy does exactly, its options state xhtml compliance. It is opensource so you can look in the source yourself by searching in google.
A pity, my skills are not enough to fix this.