hi all,
i have built a custom filemanager which now integrates really well with fck, now i'm stuck on the final bit,
how do i make it that when you select an image from my filemanager (developed in asp.net 3.5) will passback the url of the image selected
so i want it to return to the url like so in the url field
does anyone know what i need to add in my filemanager and in fckeditor for me to do this?
cheers
sync
Sat, 11/22/2008 - 07:02
#1
Re: custom filemanager passing url back to fckeditor
You can find the function in fckeditor\editor\dialog\fck_image\fck_image.js, line 425 ('function SetUrl( url, width, height, alt )')
Re: custom filemanager passing url back to fckeditor
Re: custom filemanager passing url back to fckeditor
how would you call this function?, i've got the url ready on the client side, what must i add to make the url be passed back to fck?
Re: custom filemanager passing url back to fckeditor
Re: custom filemanager passing url back to fckeditor
Maybe http://docs.fckeditor.net/FCKeditor_2.x ... s/BaseHref does what you want.
Re: custom filemanager passing url back to fckeditor
Re: custom filemanager passing url back to fckeditor
Is the relative path '/file_thumbnailer.ashx?file_id=2' correct, or should it be '../file_thumbnailer.ashx?file_id=2'? If so just add '..' to your path when sending it to the FCKeditor.
Re: custom filemanager passing url back to fckeditor
the file_thumbnailer.ashx would be sitting on the same level as the fckeditor folder on the root level of the web server, so would i need to use "/" or "../"
Re: custom filemanager passing url back to fckeditor
hmm ../ would indeed be useless if you already have / so ignore my previous reply.
But are you sure your 'ile_thumbnailer.ashx' is in the document root? The link http://localhost:3323/FileManager%20Cod ... ?file_id=2 point to it in dir 'FileManager Codebase 1.5'. So insteasd of '/file_thumbnailer.ashx?file_id=2' it might be '/FileManager Codebase 1.5/file_thumbnailer.ashx?file_id=2' that you need.
Re: custom filemanager passing url back to fckeditor
Re: custom filemanager passing url back to fckeditor
Re: custom filemanager passing url back to fckeditor
so i take it i don't need to use basehref, just pass /FileManager Codebase 1.5/file_thumbnailer.ashx?file_id=2 back to fckeditor
Re: custom filemanager passing url back to fckeditor
But basehref is actually for when you have a "Back Office system that produces contents to another site (different domain)"
Re: custom filemanager passing url back to fckeditor
this has really help, i now got it working as you suggested,
if you know any other way or what i need to change in fckeditor's config.js to make it i only need to pass /file_retriever.ashx?file_id=2 that would be great
Re: custom filemanager passing url back to fckeditor
too all who are now using CKEditor,
here is what you need
http://ckfilemanager.codeplex.com/