[dev] [patch] Insert Ansel images in htmlarea richt text
editor
Roel Gloudemans
roel at gloudemans.info
Wed Oct 13 10:14:46 PDT 2004
I expanded upon Duck's work.
I added the following functions:
- selectGalleries; returns an optionlist of galleries
- selectImages; returns an optionlist of images
Furthermore I changed all existing functions. $app may now be null. Setting it
to null results in using the default ansel share (set in base.php). This is
needed because the htmlarea plugin inserts images from existing/visible ansel
galleries.
Also did a little cleaning up on de function call parameters. numImages
needs to
be called in a different way now. It was $app,$id,$image, where $id
could be an
image or a gallery, where $image was used to distinguish.
It now is $app,$gallery_id,$image_id, where $gallery_id is ignored when
$image_id is set. To me this looks more consistent, but I think this is a
matter of taste.
Beware; code is untested. I would like comments on how this looks in general
before writing code (that is, adapting the htmlarea plugin) to test this.
Cheers,
Roel.
Quoting Duck <duck at obala.net>:
> On Wednesday 13 of October 2004 06:55, Roel Gloudemans wrote:
>> Looking at the ansel api code; Am I right it is almost non-existent? (Only
>> one call)
>>
>> So then the job would be:
>> 1) Expand on ansel api
>> 2) Adapt htmlarea plugin
>>
>> Anyone else already working on the Ansel api? (To prevent a double effort)
>>
>> Cheers,
>> Roel.
>
> I done some work and implement
> - getDefaultImage
> - numImages
> - getImageUrl
> - removeImage
> - saveImage
>
> Now I am waiting Chuck to comment/commit this ones.
> If you list the calls you need I can make something.
>
>
> Duck
>
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: api.patch
Type: text/x-patch
Size: 12421 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20041013/a1cdd04b/api-0001.bin
More information about the dev
mailing list