FCKEditor File Browser for Image URL

thumbnail
3829669, modified 16 Years ago. New Member Posts: 4 Join Date: 8/19/09 Recent Posts
Forgive me if this is a simple question. But i have searched the forums for a solution.. and though i have found some info.. nothing seems to work.

I have a custom portlet with a pretty simple web form. All works well.. i have configured Hibernate and i am persisting the form data into a database.

Last thing i would like to do.. is use a pop-up window via a href link that displays the files uploaded in the Image Gallery.

One of the fields in my form is an Image URL.. and i would like to populate it by browsing the Image Gallery and selecting an image.

I am already using the liferay-ui:input-editor in another textarea description field in the same form. So do not think i can use the editor in 2 other fields.

Any assistance or nudge would be great. I found a post that mentioned doing the following:
<A HREF="javascript:window.open('/html/js/editor/fckeditor/editor/filemanager/browser/liferay/browser.html?Type=Image&Connector=%2Fc%2Fportal%2Ffckeditor%3Fp_l_id%3D368%26doAsUserId%3D6DYteNfb914%253D','','width=640,height=480');" > click</A>

But this pop-up throws an error.

The same post also said that this Javascript function would be called on the window.opener page:
function SetUrl(imgUrl){
alert(imgUrl);
}

So i would use that function to set the value on my Image URL form field.

But alas this does not work.

Any guidance would be very much appreciated.