http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)/Custom_File_Browser
element = dialog.getContentElement( 'info', 'txtAlt' );
element = dialog.getContentElement( 'Link', 'txtUrl' );
function button_click() {
var sPathToThumbnail = document.getElementById("ThumbPhotoPath").value;
var sPathToFullSize = document.getElementById("PhotoPath").value;
var funcNum = getUrlParam('CKEditorFuncNum');
window.opener.CKEDITOR.tools.callFunction(funcNum, sPathToThumbnail, function() {
window.alert('i am in the function');
// Get the reference to a dialog window.
var element, dialog = this.getDialog();
// Check if this is the Image dialog window.
if (dialog.getName() == 'image') {
// Get the reference to a text field that holds the "link URL" attribute.
element = dialog.getContentElement('Link', 'txtUrl');
// Assign the new value.
if (element)
element.setValue(sPathToFullSize);
}
});
window.close();
}