I have intergarted a popup CKFinder (php) on a webpage that have three input fields + Browse server buttons to select three different images, with the code in the _samples\js\popup.html file.
I can get only one field to work. If a name my input field's (the id) with 'img1", "img2" and "img3",
what must i change on the SetFileField function to work with three different id's?
Cheers,
Niles
I can get only one field to work. If a name my input field's (the id) with 'img1", "img2" and "img3",
what must i change on the SetFileField function to work with three different id's?
// This is a sample function which is called when a file is selected in CKFinder. function SetFileField( fileUrl ) { document.getElementById( 'img1' ).value = fileUrl ; }
Cheers,
Niles
Re: How can i use multiple input fields / CKFinder selections?
Re: How can i use multiple input fields / CKFinder selections?
Thank's for your reply. I have changed the _samples/js/popup.html to get this to work, but i get a javascript error 'toString().match(...).1' is empty or not a object when i click the 'Browse Server' button, an the pop-up window with ckfinder is empty. The original example is working o.k., so the basepath must be right.
Any suggestions?
This is my testfile:
Re: How can i use multiple input fields / CKFinder selections?
Problem Solved!
Solution can be found here: http://www.fckeditor.net/forums/viewtopic.php?f=10&t=8136#p21413