Re: Help needed for new plugin
from
douglas
on Mar 11, 2009 08:53 AM
You might have a better time of working with PersistentStorage...
It's a reimplementation of ImageManager and ExtendedFileManager where
the UI is generated by Xinha. In the case of ImageManager, part of
the UI is in the Xinha code, and parts are generated by various php
pages.
Doug
On Mar 11, 2009, at 8:08 AM, Huw Wyn Jones wrote:
> 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