My stylesheet has a class called fltrt which is:
.fltrt { float: right; margin: 8px; padding: 2px; border: 1px solid #000 }
When I insert an image into the editor I need to be able select the image and add this class from the dropdown Styles box in the toolbar. However, I can't seem to work out how to do this. The built-in "Image on Right" style (from the stylescombo/styles/default.js file) adds inline style rules which I don't want.
In short, after inserting an image I need to add class="fltrt" to the img tag. I've searched the forums but haven't found the answer. Is there a way?
Thanks
Steve
.fltrt { float: right; margin: 8px; padding: 2px; border: 1px solid #000 }
When I insert an image into the editor I need to be able select the image and add this class from the dropdown Styles box in the toolbar. However, I can't seem to work out how to do this. The built-in "Image on Right" style (from the stylescombo/styles/default.js file) adds inline style rules which I don't want.
In short, after inserting an image I need to add class="fltrt" to the img tag. I've searched the forums but haven't found the answer. Is there a way?
Thanks
Steve
Re: Add a class to an image
Re: Add a class to an image
best regards
Steve
Re: Add a class to an image
Re: Add a class to an image
What do you mean?
He asked how to define a class in the styles combo and that's the answer.