I have problem with the integration of ckfinder into ckeditor…
Both, ckfinder and ckeditor directories are in the same folder ../admin/
The standalone ckfinder work fine but I can’t see the “Browse Server” button in insert image dialog box.
My code is:
<?php
// Include CKEditor class.
include_once '../admin/ckeditor/ckeditor.php';
require_once '../admin/ckfinder/ckfinder.php' ;
// Create class instance.
$CKEditor = new CKEditor();
// Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
// $CKEditor->basePath = '/ckeditor/'
// If not set, CKEditor will try to detect the correct path.
$CKEditor->basePath = "../admin/ckeditor/";
// Just call CKFinder::SetupCKEditor before calling editor(), replace() or replaceAll()
// in CKEditor. The second parameter (optional), is the path for the
// CKFinder installation (default = "/ckfinder/").
CKFinder::SetupCKEditor( $ckeditor, '/ckfinder/' ) ;
// Set global configuration (will be used by all instances of CKEditor).
$CKEditor->config['width'] = 600;
// Replace textarea with id (or name) "editor1".
$CKEditor->replace("tkst");
?>
I think that the problem is in this line:
CKFinder::SetupCKEditor( $ckeditor, '/ckfinder/' ) ;
I have tried every possible combination for the ckfinder path but without any result…
Please somebody help.
Thank You!
Both, ckfinder and ckeditor directories are in the same folder ../admin/
The standalone ckfinder work fine but I can’t see the “Browse Server” button in insert image dialog box.
My code is:
<?php
// Include CKEditor class.
include_once '../admin/ckeditor/ckeditor.php';
require_once '../admin/ckfinder/ckfinder.php' ;
// Create class instance.
$CKEditor = new CKEditor();
// Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
// $CKEditor->basePath = '/ckeditor/'
// If not set, CKEditor will try to detect the correct path.
$CKEditor->basePath = "../admin/ckeditor/";
// Just call CKFinder::SetupCKEditor before calling editor(), replace() or replaceAll()
// in CKEditor. The second parameter (optional), is the path for the
// CKFinder installation (default = "/ckfinder/").
CKFinder::SetupCKEditor( $ckeditor, '/ckfinder/' ) ;
// Set global configuration (will be used by all instances of CKEditor).
$CKEditor->config['width'] = 600;
// Replace textarea with id (or name) "editor1".
$CKEditor->replace("tkst");
?>
I think that the problem is in this line:
CKFinder::SetupCKEditor( $ckeditor, '/ckfinder/' ) ;
I have tried every possible combination for the ckfinder path but without any result…
Please somebody help.
Thank You!
Re: Ckeditor integration - php
Re: Ckeditor integration - php
It works! Thank you!!!
Re: Ckeditor integration - php
Unable to use it at desired Places in code.
You have written:
include_once '../admin/ckeditor/ckeditor.php';
require_once '../admin/ckfinder/ckfinder.php' ;
admin/ckeditor/ckeditor.php--ckeditor.php is there where is admin/ckeditor/ckeditor.php
I also couldn't find ckfinder.php?
Re: Ckeditor integration - php
Please do not dump old topics.
CKFinder is a separate application: http://ckfinder.com/download
After downloading CKFinder, check the documentation: http://docs.cksource.com/CKFinder_2.x/Developers_Guide
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Ckeditor integration - php
I could not understand what do you want to say please do not dump old topics?
I am in deep trouble I am unable to use editor in my web page.
Please guide me how to do it step by step.
I want to use it in my Free Portal....
www.180testgmat.com
I need your help Really I need it?
Re: Ckeditor integration - php
We have to use ckfinder or ckeditor.
Because both of them are available as download option.
I hope so You understand my confusion as naive.
Cheers!
Ankish
Re: Ckeditor integration - php
CKFinder can be easily integrated with FCKeditor. Try it now, by clicking the "Image" or "Link" icons and then the "Browse Server" button.
Error: FCKeditor not found.This sample assumes that FCKeditor (not included with CKFinder) is installed inthe "/fckeditor/" path. If you have it installed in a different place, just editthis file, changing the wrong paths in the <head> (line 5) and the "BasePath"value (line 32).
Above Error is coming while using ckfinder?
I believe Its a difficult application to understand and I wont be able to use it?