We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can someone help me get the FCKeditor extension running?

Development and Programming

barthoub's avatar
barthoub
63 posts
18 years ago
barthoub's avatar barthoub

Hi,

I first installed the tinymce extension for a clients website. That was u and running but for some reason tinymce messes up al the url’s in the inputted text… So i want to switch to FCKeditor. I installed it according to the readme file but it does not work! I can enable the extension in the extension manager but there is no editor in the publish page. Can someone help get this problem solved, i’m even willing to pay someone who can help me out with this.

P.S. I work with custom fields.

       
slim's avatar
slim
2 posts
18 years ago
slim's avatar slim

I have FCKEditor running on my system. It took some messing around and I kept a record of what I did.

Can you post what settings you have made so far so I can have a look?

       
barthoub's avatar
barthoub
63 posts
18 years ago
barthoub's avatar barthoub

I copied the folder FCKeditor in de rootfolder of my site. I copied the extension file in the extension folder. I copied the language file in the language folder.

I enabled the extension in the CP. Tried to run without changing the settings. Nothing happened.

Then tried to enter the url’s where he could find the script in the settings panel. Check below.

URL of FCKEditor Script: http://www.mysite.be/FCKeditor/fckconfig.js

FCKEditor Configuration :

var oFCKeditor = new FCKeditor(textAreaName); oFCKeditor.BasePath = ‘http://www.mysite.be/FCKeditor/’ ; oFCKeditor.Config[“CustomConfigurationsPath”]=”http://www.mysite.be/FCKeditor/fckconfig.js”; oFCKeditor.ToolbarSet = ‘eetestToolbar’; oFCKeditor.ReplaceTextarea() ;

       
slim's avatar
slim
2 posts
18 years ago
slim's avatar slim

OK. I’ve looked up the notes I made and reproduced them here. Some of it may not be quite right or necessary, but these are the hacks I made. The filename is in bold and the location is in italic. As I say they are hacks. I’m no expert.

What I put together was mostly from the .(JavaScript must be enabled to view this email address).

Good luck!

PS for any EE people listening - please develop an integrated wysiwyg editor. I’m sure you seen one that simply plugs into Wordpress. I want to make sites that reasonably competent people can easily input to in a familiar way. Build one that has selectable format options to enable/disable to suit the developer’s need to preserve layout and design. When I recently saw the wordpress editor I thought “I want that one!” Akismet integration would be nice too.

EE Extension Config location EE->Admin->Utilities->Extensions->FCKEditor

var oFCKeditor = new FCKeditor(textAreaName);
oFCKeditor.BasePath = '../fckeditor/' ;
oFCKeditor.Config["CustomConfigurationsPath"]="http://www.highandlonesome.com/myconfig.js";
oFCKeditor.ReplaceTextarea() ;

fckconfig.js

var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php

myconfig.js location - site root Custom settings for FCK Editor and EE

// Say which connector to use
FCKConfig.ImageBrowserURL =
'http://www.highandlonesome.com/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php';
FCKConfig.LinkBrowserURL =
'http://www.highandlonesome.com/fckeditor/editor/filemanager/browser/default/browser.html?Type=File&Connector=connectors/php/connector.php';
FCKConfig.MediaBrowserURL =
'http://www.highandlonesome.com/fckeditor/editor/filemanager/browser/default/browser.html?Type=Media&Connector=connectors/php/connector.php';
// Getting rid of unneccessary image upload functions
FCKConfig.ImageDlgHideLink = true;
FCKConfig.ImageUpload = false;
FCKConfig.ImageDlgHideAdvanced = true;

FCKConfig.StylesXmlPath = '../fckstyles.xml' ;

config.php fckeditor>editor>filemanager>browser>default>connectors>php> config.php

$Config'Enabled' = true ;
// Path to user files relative to the document root.
$Config'UserFilesPath' = '/images' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
//$Config'UserFilesAbsolutePath' = './public_html/images/' ;DON'T USE THIS
frmresourceslist.html
fckeditor>editor>filemanager>broswer>default> frmresourceslist.html
after function OpenFolder( folderPath )
//hacked by CE
function OpenFile( fileUrl )
{
var urlChange = 'http://www.highandlonesome.com'+fileUrl.toString();
window.top.opener.SetUrl(urlChange) ;
// window.top.opener.SetUrl( fileUrl ) 
window.top.close() ;
window.top.opener.focus() ;
}
       
plebe's avatar
plebe
50 posts
17 years ago
plebe's avatar plebe

Hi Folks,

Thanks for this. I think my problem precedes the uploading issue. Whenever I click the “Browse Server” button, I get a large window with an error.

The error seems to show that I it is still trying to use the .asp connector, despite that I’ve changed this in the fckconfig.js file. (I’ve attached a snapshot of the error). These are my setttings for choosing the connector, but they don’t seem to work. I still get the asp error when trying to browser the server.

var _FileBrowserLanguage    = 'php' ;    // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage    = 'php' ;    // asp | aspx | cfm | lasso | php

I’ve also configured the php connectors, etc. and even tried commenting out the lines you suggested. Can’t seem to get past this “using the wrong connector issue.” this has to be simple.

Any help appreciated.

       
plebe's avatar
plebe
50 posts
17 years ago
plebe's avatar plebe

Sorry to Bump, but I would L-O-V-E to get this working. Anyone with idead I should try?

       
zitro62's avatar
zitro62
9 posts
17 years ago
zitro62's avatar zitro62

not sure if you’ve got this resolved, but i find that if I ever change a .js file clearing my cache will greatly help…

in firefox shift+clicking the refresh button will do the trick!

also, in firefox if you go right the js file it will read it so you can BE SURE your changes have been made.(http://www.yourserver.com/fckconfig.js) This maybe overkill, but when trying to trouble shoot a problem its worth the extra 5 seconds!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.