|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Question Regarding API/imageListHi,
First let me quickly explain what it is i'm doing. I have a PHP page for the editor, inside here I have a string containing the XML configuration (so I can dynamically change it, based on who is using it). And then this string is passed to the instance of EditLiveJava which is also on this same page. For the imageList, we read the relevant directory and pull the images from it, these will then appear in the imageDialog. We don't allow users to add local files, instead, we have an upload manager. (Each site has a /images, /documents and /media folder, with each allow specific file types to be uploaded). My problem is, when they use the upload manager from within the editor, and upload some images, when they then open the Insert->Image dialog, the images don't appear, because the images were pre-loaded when the editor was instanced. Is there anything I can pass to EditLiveJava to tell it to add an image in a similar way the <image> element works? So that I can do this every time an image is uploaded? I searched the API and couldn't find anything relevant. Another solution would be when they close the upload manager, could I get editlivejava to 're-read' the XML configuration - But as my configuration is effectively a string being set on the same page the editor is instanced, I don't think this would work? Anyone got any ideas? Thanks in advance. - Steven |
|
|
Re: Question Regarding API/imageListYou can't change the XML config after the editor has loaded :)
There are two options for fully dynamic image listings: * WebDAV * ImageBrowser It sounds like WebDAV is the one you want, both it and ImageBrowser should be fully documented in the SDK. Cheers, Andy -------------------------------------------------- From: "Steven Drinkwater" <steven@...> Sent: Friday, December 14, 2007 9:50 PM To: "LiveWorks Discussion" <liveworks@...> Subject: [Liveworks] Question Regarding API/imageList > Hi, > > First let me quickly explain what it is i'm doing. > > I have a PHP page for the editor, inside here I have a string > containing the XML configuration (so I can dynamically change it, > based on who is using it). And then this string is passed to the > instance of EditLiveJava which is also on this same page. > > For the imageList, we read the relevant directory and pull the images > from it, these will then appear in the imageDialog. > > We don't allow users to add local files, instead, we have an upload > manager. (Each site has a /images, /documents and /media folder, with > each allow specific file types to be uploaded). > > My problem is, when they use the upload manager from within the > editor, and upload some images, when they then open the Insert->Image > dialog, the images don't appear, because the images were pre-loaded > when the editor was instanced. > > Is there anything I can pass to EditLiveJava to tell it to add an > image in a similar way the <image> element works? So that I can do > this every time an image is uploaded? I searched the API and couldn't > find anything relevant. > > Another solution would be when they close the upload manager, could I > get editlivejava to 're-read' the XML configuration - But as my > configuration is effectively a string being set on the same page the > editor is instanced, I don't think this would work? > > > Anyone got any ideas? > > > Thanks in advance. > - Steven > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ > |
|
|
Re: Question Regarding API/imageList> There are two options for fully dynamic image listings:
> * WebDAV > * ImageBrowser Or custom image dialog component if you can write a bit of Java - probably not the best option in this case, but useful to know about. You could put your entire upload manager in as a component of the image dialog and get rid of the static image list altogether. In this case, I suspect WebDAV or ImageBrowser is the faster and simpler route though. Adrian. ______________________ Adrian Sutton, CTO Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 Ephox <http://www.ephox.com/> Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http://www.symphonious.net/ > |
|
|
Re: Question Regarding API/imageListHi,
Thanks for the responses, I chose the ImageBrowser method and it worked great :) Thanks, Steven On 14 Dec 2007, at 23:30, Adrian Sutton wrote: >> There are two options for fully dynamic image listings: >> * WebDAV >> * ImageBrowser > > Or custom image dialog component if you can write a bit of Java - > probably not the best option in this case, but useful to know about. > You could put your entire upload manager in as a component of the > image dialog and get rid of the static image list altogether. > > In this case, I suspect WebDAV or ImageBrowser is the faster and > simpler route though. > > Adrian. > ______________________ > Adrian Sutton, CTO > Global Direct: +1 (650) 292 9659 x717 Australia: +61 (7) 3858 0118 > Ephox <http://www.ephox.com/> > Ephox Blogs <http://planet.ephox.com/>, Personal Blog <http:// > www.symphonious.net/ >> > _______________________________________________ > LiveWorks mailing list > LiveWorks@... > http://liveworks.ephox.com/mailing-list/ |
| Free Forum Powered by Nabble | Forum Help |