Could you guys do me a favour and please append a class like "floated-left" or "floated-right" to an image in addition to the style="float:left" when we use the editor to insert an image.
The problem is it's impossible to style the image. Like if it's floated left I wouldnt want any left margin\padding, and floated right I wouldnt want any right margins or padding...
I'm having to hack it in with jQuery, and I'd much rather not have that processing cost on every page load if it could be handled with css
Thx, Steve
The problem is it's impossible to style the image. Like if it's floated left I wouldnt want any left margin\padding, and floated right I wouldnt want any right margins or padding...
I'm having to hack it in with jQuery, and I'd much rather not have that processing cost on every page load if it could be handled with css
$(
"img[style]"
,
"#content-wrapper"
).each(
function
() {
if
($(
this
).css(
"float"
) ===
"left"
|| $(
this
).css(
"float"
) ===
"right"
) {
$(
this
).addClass(
"floated-"
+ $(
this
).css(
"float"
));
}
});
Thx, Steve