Hi everyone here!
I purchased ckfinder (2.0) and I´ve been playing around for three days to get this piece of software integrated into ckeditor (latest version 3.3) in drupal. I read the documentation and piles of postings in various forums that are obviously obsolete for the latest versions of ckfinder and ckeditor.
I copied the extracted ckfinder folder into the ckeditor directory (/sites/all/modules/ckeditor/ckfinder) and I even tried to get it function from the root directory of my site (ckeditor/ckfinder) as sometimes recommended. My wysiwyg module is normally active, neither ckeditor nor ckfinder are listed on the modules admin pages (if I disable wysiwig it makes no difference, ckeditor does not appear in the modules list - but it works as soon as I edit my nodes).
First of all I pasted my license key into config.php
Then I wrote "session_start();" on top of all the code in config.php under <?php.
I left the the checkAuthentication() function as I found it in config.php
function CheckAuthentication()
{
return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
return false;
}
As this and other variations of the function (some just deactivate it completely) as described in different forums on the web did not show any effects I simply set it to "return=true" for testing purposes. At this point the documentation that comes with ckfinder is not very helpful for those who are not very familiar with the use session variables in php.
The actual paths in config.php (also here i previously experimented with e.g. http://mysite/ckedior/ckfinder/userfiles) are as follows:
$baseUrl = '/userfiles/';
$baseDir = resolveUrl($baseUrl);
So what may be wrong with my configuration and how can I tell ckeditor to use ckfinder (or vice versa)? Now at this point i stopped my searches as the many suggestions and even videos on the web i came across did not help and are not fit for the latest versions of the software (where for instance is the file filemanager.config.php if i call a function like "require_once '../../../../includes/filemanager.config.php';" ?
Simply does not work ... and as I purchased the software (still believe it was a good decision) I want to use it, althogh I am sure there will be more open source altenatives in the future.
Thanks in advance, your suggestions would be highly appreciated
Martin Urbanek
Tue, 06/01/2010 - 04:21
#1
Re: ckfinder integration in ckeditor failed
Hi Martin,
The file named filemanager.config.php is a special file written for CKFinder to support sessions and user roles from Drupal It is distributed along with the CKEditor module (it is a totally different project than Wysiwyg module) and does not work without the CKEditor module.
You may try out disabling the wysiwyg module and installing the CKEditor module and then follow the CKFinder integration instruction in README.txt (make sure you follow exactly all the steps described there, including setting $cookie_domain). Once the CKEditor module is installed, some basic settings for CKFinder may be set in the CKEditor administration area.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder integration in ckeditor failed
Even so i was reading lots of postings on this issue i did not detect that the ckeditor module (distributed under "ckeditor-6.x-1.1") has to be installed first before one gets to install and configure ckeditor from ckeditor.com (latest version "ckeditor_3.3") and copy it into ckeditor/ckeditor subfolder. Yet i just used the software from "ckeditor_3.3".
Now everything looks different. I'll try this out and keep you informed about the results, as there might be other people confused at this simple but crucial point.
Martin
Re: ckfinder integration in ckeditor failed
Thanks again. Now I sucessfully integrated ckfinder. When I click on the image or link icon in ckeditor the ckfinder functions are available.
Unfortunately I cannot upload any images from my local computers (seems to upload to server, but as soon as I click on the OK button I get the message "image source URL is missing" - almost expected i could also get into this trap as this has repeatedly been an issue in ck-forums). I carefully read the related articles and instructions and tested the codes. It simply dosn't work.
Now my directories are: http://www.mysite/ckeditor/ckeditor/ckfinder
in ckfinder-config.php I have the following code (otherwise the ckfinder would not work at all):
$baseUrl = '/ckfinder/userfiles/';
$baseDir = resolveUrl($baseUrl);
require_once '../../../../includes/filemanager.config.php';
I modified " $cookie_domain = 'www.mysite' " in default/settings.php as required.
Media embed and IMCE (is IMCE in conflict with ckfinder?) plugins are enabled in ckeditor.config.js.
In ckeditor/ckeditor/config.js there is currently no active code (as all attempts to insert code from the javascript cksource instructions and to modify the paths failed).
Which code should I paste where in which file? The first time I started to work with drupal was just four weeks ago. Creating templates and activating modules worked fine, except for this ckfinder business on which I already spent lot of time. I`'ll continue experimenting, but maybe you could give me some advice.
Best regards,
Martin
Re: ckfinder integration in ckeditor failed
Please use drupal issue tracker for issues related to Drupal module.
Do you have a "Browse Server" button in Image Dialog? If yes, please try using it to
- open CKFinder,
- upload a file using CKfinder
- select a file in CKFinder and sent it back to CKEditor (double click on it)
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: ckfinder integration in ckeditor failed
The server window under ckfinder was empty and I could not upload files (message "image source url is missing") as long as there were no folders named "files_thumbs", "filesflash" and "filesimages" in the "sites/default" directory. I had to create them manually. The path in the ckeditor-ckfinder administration settings has to be "%b%f" which is equivalent to "/sites/default/files". So this is my actual configuration and for some reason it works.