Dec 5, 2004, 10:12 PM
Post #1 of 1
adding html around img tags
I am trying to use htmlarea as a heavily restricted editor for a cms application.
Bascially, I can't allow the users to preform any formatting themselves when it comes to adding images.
Also, the images need to be formatted in a specific way, where the image is placed inside a table and 2 border are created using the tables border color and having the background color of the table slightly larger than the image.
I don't want to bore you with the design specifications. What I need to accomplish is to have automatically put some html code (i.e. the formatted table) around every img tag that gets inserted in the textarea.
I had a look at the insert_image.html file, but I can't figure out where I would need to add the table code.
Can anyone help?