Hi there,
First of all FCKeditor and CKFinder are 2 great products. But I have problems integrating the CKfinder with FCKeditor
below i will paste some code maybe I've done something wrong there...
here is what I did:
1) I've placed the CKFinder folder into FCKeditor/editor/ folder.
2) Changed config.php to make CKFinder work in standalone mode.
3) Changed fckconfig.js with the following values.
4) Tested FCKeditor and still loads the default filemanager.
5) Here is what I have in the .php file that loads FCKeditor
*NOTE $buff is loaded into a template and works fine.
I've tested the above code with and without the quoted lines but still I get to see the default filemanager...
I hope a solution can be provided..
Thanks in advance!
First of all FCKeditor and CKFinder are 2 great products. But I have problems integrating the CKfinder with FCKeditor
below i will paste some code maybe I've done something wrong there...
here is what I did:
1) I've placed the CKFinder folder into FCKeditor/editor/ folder.
2) Changed config.php to make CKFinder work in standalone mode.
3) Changed fckconfig.js with the following values.
FCKConfig.LinkBrowser = true ; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html' ;FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% FCKConfig.ImageBrowser = true ; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html?type=Images' ; FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; FCKConfig.FlashBrowser = true ; FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'ckfinder/ckfinder.html?type=Flash' ;FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ;//70% ; FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; FCKConfig.LinkUpload = true ; FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files' ; FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one FCKConfig.ImageUpload = true ; FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images' ; FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one FCKConfig.FlashUpload = true ; FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' ; FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; FCKConfig.SmileyColumns = 8 ; FCKConfig.SmileyWindowWidth = 320 ; FCKConfig.SmileyWindowHeight = 240 ;(sorry for pasting all of it, but now we are sure everything is here...)
4) Tested FCKeditor and still loads the default filemanager.
5) Here is what I have in the .php file that loads FCKeditor
<?php
include_once("fckeditor/fckeditor.php") ;
/* require_once('fckeditor/editor/ckfinder/ckfinder.php'); */
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->Height = '500' ;
$oFCKeditor->BasePath = 'fckeditor/' ;
//$oFCKeditor->Config['SkinPath'] = '/EzionGate/admin/fckeditor/editor/skins/office2003/' ;
$oFCKeditor->Value = $blockcontent;
/* CKFinder::SetupFCKeditor( $fckeditor, 'fckeditor/editor/ckfinder/' ) ;*/
$buff.= $oFCKeditor->CreateHtml();
?>*NOTE $buff is loaded into a template and works fine.
I've tested the above code with and without the quoted lines but still I get to see the default filemanager...
I hope a solution can be provided..
Thanks in advance!

Re: Problem with CKfinder integration to FCKeditor
Did you clear your browsers cache after changing the fckconfig.js file?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem with CKfinder integration to FCKeditor
Cleaning my cache did the trick.. thanks for helping out, it works like a charm now, anyway I'm probably going to use this in a project i'm building, the project is great and is future rich!! thanks for the support for now.
Cheers!
Re: Problem with CKfinder integration to FCKeditor
http://-Path
/
Re: Problem with CKfinder integration to FCKeditor
There are few minor issues in the ColdFusion 1.1 connector, until we release the improved version publicly, could you try it and let me know whether it solved your problem?
ckfinder.cfc: (lines 101-102)
Replace
<cfset this.editorObj.config['ImageBrowserURL'] = url & '?type=' & iif( Len( this.imageType ), this.imageType, De('Images'))> <cfset this.editorObj.config['FlashBrowserURL'] = url & '?type=' & iif( Len( this.flashType ), this.flashType, De('Flash'))>With:
<cfset this.editorObj.config['ImageBrowserURL'] = url & urlencodedformat('?type=' & iif( Len( this.imageType ), this.imageType, De('Images')))> <cfset this.editorObj.config['FlashBrowserURL'] = url & urlencodedformat('?type=' & iif( Len( this.flashType ), this.flashType, De('Flash')))>core\connector\cfm\CommandHandler\XmlCommandHandlerBase.cfc: (line 43)
Replace
With:
core\connector\cfm\CommandHandler\Init.cfc: (line 56)
Replace
With:
Add (line 51)
if (not isDefined("URL.type") or URL.type eq THIS.config.resourceType[i].name) {Before:
(straight after <cfscript>)
Add (line 73)
After:
(straight before </cfscript>)
I have attached the corrected files here: .
Attachments:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem with CKfinder integration to FCKeditor
Re: Problem with CKfinder integration to FCKeditor
One more question - if I may ask - could you try to replace the Init.cfc with the fixed file that is in attachment?
Thanks,
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem with CKfinder integration to FCKeditor
Greets
Re: Problem with CKfinder integration to FCKeditor
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Another Way round
Quit good Reference got on web:http://dwij.co.in/ckeditor-ckfinder-integration-using-php/