Guys, i am having a problem integrating ckfinder into ckeditor, this is my code
in the head:
<script type="text/javascript" src="editor/ckeditor.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
in the body using PHP:
<textarea cols=\"80\" id=\"editor2\" name=\"editor2\" rows=\"10\">$row[content]</textarea>
<script type=\"text/javascript\">
var editor = CKEDITOR.replace( 'editor2' );
CKFinder.setupCKEditor( editor, '/ckfinder/' ) ;
</script><br />
<input name=\"\" type=\"submit\" value=\"Submit\" />
i keep getting the error object not found once i click on the browse server button in the image popup of the ckeditor, can someone please help me?
Thanks
in the head:
<script type="text/javascript" src="editor/ckeditor.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
in the body using PHP:
<textarea cols=\"80\" id=\"editor2\" name=\"editor2\" rows=\"10\">$row[content]</textarea>
<script type=\"text/javascript\">
var editor = CKEDITOR.replace( 'editor2' );
CKFinder.setupCKEditor( editor, '/ckfinder/' ) ;
</script><br />
<input name=\"\" type=\"submit\" value=\"Submit\" />
i keep getting the error object not found once i click on the browse server button in the image popup of the ckeditor, can someone please help me?
Thanks
Re: object not found
First you have to install CKfinder in root level then paste the same code your page where you want to display CKeditor right....
CKEDITOR.replace( 'editor1',
{
filebrowserBrowseUrl : '/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : '/ckfinder/ckfinder.html?type=Images',
filebrowserFlashBrowseUrl : '/ckfinder/ckfinder.html?type=Flash',
filebrowserUploadUrl :
'/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files¤tFolder=/archive/',
filebrowserImageUploadUrl :
'/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images¤tFolder=/cars/',
filebrowserFlashUploadUrl : '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
}
);
Re: object not found
Can someone helo me please?
Re: object not found
Use some tool like Fiddler, Tamper data extension or Firebug to trace HTTP requests to see where your application is looking for CKFinder.
Perhaps the path to CKFinder is not /ckfinder/ but for example /subfolder/ckfinder/.
Check if CKFinder is really available in the /ckfinder/ folder - open http://yourdomain.com/ckfinder/ckfinder.html in your browser and check if it's there.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+