Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 09:03 am EDT

Geeklog Forums

How to Configure FCKeditor in the new 1.4


Status: offline

phpsocialclub

Forum User
Junior
Registered: 03/05/03
Posts: 30
Location:North Carolina
I am in love with the new FCKeditor that is included with the GL 1.4.

I have been installing FCKeditor in all of my GL sites (10+) for a while now, and have had to reinstall it everytime I upgraded. Now I can stop that practice, I thought everyone would enjoy some information about how to customize the editor.


If you want to change the tool bar options, you can change this file
/public_html/javascript/staticpages_fckeditor.js
Line 14: oFCKeditor1.ToolbarSet = 'editor-toolbar3' ;

there are other options for the tool bar and they are listed in
/public_html/fckeditor/fckconfig.js

There are a lot of options in this file, but if you make changes, you must either clear your cache or reload this file directly, so that your browser will not cache the old version. I would save a copy of this file, because you can hose your install if you muck it up to much.


If you add a tool bar with the "Style" option, you can load a list of styles that is detailed in this file
/public_html/fckeditor/fckstyles.xml

If you want to put styles from your site into this file, it is xml and pretty easy to figure out if you take a look at it.

You can also edit the templates that are available in this file
/public_html/fckeditor/fcktemplates.xml

You can add details of tables that you can add to the site if you are creating a lot of pages that need a common theme.


If you want to change the types of files that you can upload with the "browser server" behavior you can edit
/public_html/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/config.php

This file contains all of the restrictions for the types of files that can be uploaded, from file type to size

for example if you want to change how the editor adds the URL to your images instead of making them relative to the site root, you can change line 46 and make
$fckphp_config['urlprefix'] = $_CONF['site_url'];
into
$fckphp_config['urlprefix'] = "/"; and it will not add the domain name to the image path,

this is great if you are working on a site on a dev server and do not want to go around and redo all the image links,

enjoy and thanks again to all the GL developers for adding this to the core


I work for a Wilmington NC Attorney
 Quote

Status: offline

suvi

Forum User
Chatty
Registered: 11/20/05
Posts: 44
Location:Zurich
sad
Hi phpsoacial,

I have a problem activation the FCKeditor.

I have change config.php to
$_CONF['advanced_editor'] = true;

But I don't see this editor anywhere on my pages. Not in "new topic" nor
in "post reply". Can you help me? Where can I check the FCKeditor?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Are you using the professional theme - looks like you don't have the required templates.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

suvi

Forum User
Chatty
Registered: 11/20/05
Posts: 44
Location:Zurich
Yep. It was a theme. Someone else gave me this tipp on another thread.
I wrote a small text how to modify a GL 1.4 Theme. If you want it I can send it to you.
 Quote

All times are EDT. The time is now 09:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content