*(I apologize if this has been covered before in Habari-Dev. Google Groups
is blocked in China and I haven't a VPN handy at the moment that would allow
me to search the group archives.)*

I'd like to change the code when inserting images into a post from the silo.
Specifically, I'd like the insertion to create something akin to this code
by default (new parts in bold):

*<div class="image">*
  <img alt="" src="" width="" height="" *title=""* />
*  <div class="imageCaption"></div>
</div>*

As I understand it, currently */system/admin/js/media.js* controls this
ability, with lines 169~171 governing the inserted image's code.

I can manually edit these lines to satisfy my needs, but what would I do if
I wanted to make a plug-in for this ability? Or with a more general scope -
let's say a plug-in that allows the user to define an inserted image's
default HTML.

It's a no-no for plug-ins to overwrite media.js, is it not?

Thank you for your time!

- Andrew

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to