David Duman
David Duman

Reputation: 6656

CLEditor image align

Is there a simple way to add

align="left" 

into img tag for every inserted image?

thanks

Upvotes: 1

Views: 510

Answers (2)

Mattygabe
Mattygabe

Reputation: 1790

When you say "every inserted image", are you dynamically adding images into the page with jQuery?

If the answer is "yes" (dynamic images), for every image add a CSS class to the image:

<img src="img/path.png" class="insertedImage" />

And then define a CSS class in your CSS file:

img.insertedImage { float: left; }

If the answer is "no", then just add CSS that left-aligns every image on the page:

img { float: left; }

Upvotes: 0

Qtax
Qtax

Reputation: 33908

Use CSS?

img { float: left; }

Upvotes: 1

Related Questions