Hello
I have integrated CKFinder with CKEditor. Each is working individually however if I "Browse Server" from CKEditor and select a file the URL is not passed to the CKEditor "Image Properties" window.
If I select OK from this point (in CKEditor "Image Properties" window) I get the following error message "Image source URL is missing."
My folder structure is -
[my site url]/cms/ckeditor
[my site url]/cms/ckfinder
[my site url]/userfiles/
ckfinder/config.php is left as default except for these settings -
CKEditor is called from this file -
[my site url]/cms/youreditor.php
with the following code -
As stated both work perfectly - it is just this connection that is not working for me. Any help is appreciated.
Regards,
TIM
I have integrated CKFinder with CKEditor. Each is working individually however if I "Browse Server" from CKEditor and select a file the URL is not passed to the CKEditor "Image Properties" window.
If I select OK from this point (in CKEditor "Image Properties" window) I get the following error message "Image source URL is missing."
My folder structure is -
[my site url]/cms/ckeditor
[my site url]/cms/ckfinder
[my site url]/userfiles/
ckfinder/config.php is left as default except for these settings -
$baseDir = '/home/9-web/96/b2/[my site url]/public/www/userfiles/'; $baseUrl = '/userfiles/';
CKEditor is called from this file -
[my site url]/cms/youreditor.php
with the following code -
CKEDITOR.replace( 'editor1',
{
filebrowserBrowseUrl : '/cms/filemgr.inc.php',
filebrowserImageBrowseUrl : '/cms/filemgr.inc.php?type=Images',
filebrowserFlashBrowseUrl : '/cms/filemgr.inc.php?type=Flash',
filebrowserUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
}
);
As stated both work perfectly - it is just this connection that is not working for me. Any help is appreciated.
Regards,
TIM

Re: CKFinder not passing selected image URL to CKEditor
What version of CKFinder, CKEditor are you using and in what browser/OS did that happen?
Could you paste here some code how exactly are you creating CKFinder instance?
Does that example work on your computer: _samples/js/ckeditor.html ?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder not passing selected image URL to CKEditor
The example you referred to has sorted out the problem (_samples/js/ckeditor.html).
I have now used this code -
<script type="text/javascript"> // This is a check for the CKEditor class. If not defined, the paths must be checked. if ( typeof CKEDITOR == 'undefined' ) { document.write( '<strong><span style="color: #ff0000">Error</span>: CKEditor not found</strong>.' + 'This sample assumes that CKEditor (not included with CKFinder) is installed in' + 'the "/ckeditor/" path. If you have it installed in a different place, just edit' + 'this file, changing the wrong paths in the <head> (line 5) and the "BasePath"' + 'value (line 32).' ) ; } else { var editor = CKEDITOR.replace( 'editor1' ); //editor.setData( '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>"Browse Server"</b>.</p>' ); // Just call CKFinder.SetupCKEditor and pass the CKEditor instance as the first argument. // The second parameter (optional), is the path for the CKFinder installation (default = "/ckfinder/"). CKFinder.SetupCKEditor( editor, 'ckfinder/' ) ; // It is also possible to pass an object with selected CKFinder properties as a second argument. // CKFinder.SetupCKEditor( editor, { BasePath : '../../', RememberLastFolder : false } ) ; } </script>instead of this code -
<script type="text/javascript"> //CKEDITOR.replace( 'editor1' ); CKEDITOR.replace( 'editor1', { filebrowserBrowseUrl : '/cms/filemgr.inc.php', filebrowserImageBrowseUrl : '/cms/filemgr.inc.php?type=Images', filebrowserFlashBrowseUrl : '/cms/filemgr.inc.php?type=Flash', filebrowserUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : '/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' } ); </script>Which has solved my issue - not sure what was causing my problem before but thank for pointing me in the right direction.
Regards - Tim