FCK Image Browser Url

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/30/2008 9:56:50 AM
Gravatar
Total Posts 48

FCK Image Browser Url

Hi,

By deafult FCKeditor stores the path to the "browse server" feature in 3 different config keys, one for LinkBrowserURL, ImageBrowserURL, and FlashBrowserURL. In mojoPortal these have been commented out and they all seem use the same mojo key from web.config. The problem I'm having is that I'd like to customise the "browse sever" feature but only for Images. The current browse server allows you to upload files but it bypasses mojo's own file manager. I've added features to mojo's file manager to allow resizing of images and would like to place it in the "browse server" feature for Images.

What I've done so far is add another key to web.config pointing to:

<add key="ImageBrowserRelativePath" value="~/ClientScript/FCKeditor26/editor/filemanager/browser/default/ImageManager/browser.html" />

Instead of

<add key="FileBrowserRelativePath" value="~/ClientScript/FCKeditor26/editor/filemanager/browser/default/browser.html" />

And then picked it up in FCKeditorAdapter.cs and used it in the two references to "ImageBrowserURL". It seems to be working fine but I wanted to know if this is the correct way to do this as I don't want to affect any other featrures that use FCKeditor?

Thanks in advance for any help,

Reiss   << excellent, smilies are back lol

 

5/31/2008 7:12:38 AM
Gravatar
Total Posts 18439

Re: FCK Image Browser Url

Hi Reiss,

Yes, it sounds right. I will make the same change here to allow configuring them separately.

Currently, by default the same browser.html page is used for all browsing of images, files, links, Flash, etc. But they pass a query string param "Connector=" which points to a service url that provides data for the browser. Images and files use the FileBrowseConnector.aspx and Links use the LinkBrowseConnector.aspx page to provide the data.

I would be very wary about giving users direct access to the server file system as in the mojoPortal File Manager. Someone using this feature can break the site (by deleting skins or search index). I think its better to limit what folders they see to only what is needed, perhaps a pre-difined folder where images go. But maybe you have added logic for this.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.