Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-03-11 08:53:07

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Help needed for new plugin

Hi folks,

I really need some help with the new gallery plug-in I'm working on for Xinha. Can any of you JavaScript experts lend a hand?

I've based the plug-in on ImageManager so for the purposes of this question that's the relevant code-base. This is the question:

I want to modify the HTML that the plug-in inserts into the main Xinha window - but I can't see where this code is generated. Is the code generated by the plug-in (which I suspect) or by xinhacore?

For example when I select an image in IM and click OK it returns

<img height="xxx" width="xxx" src="/myimage.gif" alt="My Picture" />

I want to replace this with something like

<div class="gallery"><img height="xxx" width="xxx" src="/myimage.gif" alt="My Picture" /></div>

Where is the HTML generated?

TIA

Huw

Offline

Board footer

Powered by FluxBB