I use CKEditor 3.x + CKFinder 1.4 ,I want to get image URL after an image been uploaded.
How to get the URL value from CKEditor image dialog ? or create an function from CKFinder ?
Some body help me please ...
How to get the URL value from CKEditor image dialog ? or create an function from CKFinder ?
Some body help me please ...

Re: How to get the URL value from image dialog ?
If you want to get the data from the image dialog it would be useful to know how you want to get the data. as in do you want to add a button to the image dialog etc. as the url should be visible in the image info:txtUrl field. You can alter the commit function in plugin/image/dialog/image.js if you want to fire an event when you save the image dialog.
here is what I did in ckfinder/ckfinder.html
so that I could do some stuff to the url before I handed it back to the image dialog in ckeditor
admittedly I didn't change much of what they had there initially
function ShowFileInfo( fileUrl, data ) { if (window.opener && !window.opener.closed){ var gp=new Array(); var loc=location.search; if (loc){ loc=loc.substring(1); var parms=loc.split('&'); for(var i=0;i<parms.length;i++){ nameValue=parms[i].split('='); gp[nameValue[0]]=unescape(nameValue[1]); } } var editor = gp['CKEditor']; /* I had multiple CKEDITORS using the same nav bar so there might be a little more code than you would normally need here. */ var sourceElement = window.opener.CKEDITOR.instances[editor]._.filebrowserSe; var dialog = sourceElement.getDialog(); var targetElement = sourceElement.filebrowser.target || null; url = fileUrl.replace( /#/g, '%23' ); /* here is where I did stuff to the url */ // If there is a reference to targetElement, update it. if ( targetElement ) { var target = targetElement.split( ':' ); var element = dialog.getContentElement( target[ 0 ], target[ 1 ] ); if ( element ) { element.setValue( url ); dialog.selectPage( target[ 0 ] ); } } } }and then when you initialise the ckfinder instance:
Re: How to get the URL value from image dialog ?