Configuration of FCKEditor and CKFinder
Configuration of FCKEditor and CKFinder
Table of Contents
Enable Image Upload for PHP.............................................................................................................2
Change Skins of FCKEditor.................................................................................................................3
Available Skins................................................................................................................................3
Skin Configuration...........................................................................................................................3
Customization of the toolbar................................................................................................................4
Available Buttons for Toolbar..........................................................................................................4
Defining custom toolbars.................................................................................................................4
Using custom toolbars in Testlink....................................................................................................4
Spellchecker with Spellerpages (aspell) ..............................................................................................5
Activation of SpellerPages...............................................................................................................5
Spellchecker on Windows Server....................................................................................................5
Spellchecker on Linux Server..........................................................................................................5
Add SpellChecker button to toolbar................................................................................................5
Definition of Templates........................................................................................................................6
XML-structure to create templates..................................................................................................6
"Preview-images" for templates......................................................................................................6
Add templates button to toolbar.......................................................................................................6
Enable CKFinder instead of the built-in Filemanger of FCKEditor....................................................7
What is CKFinder?..........................................................................................................................7
Features............................................................................................................................................7
Download CKFinder........................................................................................................................7
License.............................................................................................................................................7
Install CKFinder..............................................................................................................................7
Enable CKFinder.............................................................................................................................8
Open FCKeditor/editor/filemanager/connectors/php/config.php
Replace
$Config['Enabled'] = true ;
by
$Config['Enabled'] = checkUpload();
function checkUpload()
{
session_start();
return (isset($_SESSION['currentUser']));
}
Make sure that the given 'UserFilesPath' folder exists on the server and has write permission.
$Config['UserFilesPath'] = '/UserFiles/' ;
Replace line:
$Config['UserFilesAbsolutePath'] = '' ;
by
//$Config['UserFilesAbsolutePath'] = '' ;
Open cfg/tl_fckeditor_config.js
Set:
FCKConfig.LinkBrowser = true;
FCKConfig.ImageBrowser = true;
FCKConfig.FlashBrowser = true;
and
FCKConfig.LinkUpload = true;
FCKConfig.ImageUpload = true;
FCKConfig.FlashUpload = true;
if you want to allow Quickupload, which could result in many unsorted uploads.
Available Skins
default
office2003
silver
Skin Configuration
Open cfg/tl_fckeditor_config.js
Search for:
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/';
Comment this line and uncomment the line that contains the skin you chose.
office2003
silver
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/';
If you want to stick with the default skin do not make a change.
DocProps
Save
NewPage
Preview
Cut
Copy
Paste
PasteText
PasteWord
SpellCheck
Undo
Redo
Find
Replace
SelectAll
RemoveFormat
Form
Checkbox
Radio
TextField
Textarea
Select
Button
ImageButton
HiddenField
Bold
Italic
Underline
StrikeThrough
Subscript
Superscript
OrderedList
UnorderedList
Outdent
Indent
Blockquote
CreateDiv
JustifyLeft
JustifyCenter
JustifyRight
JustifyFull
Link
Unlink
Anchor
Image
Flash
Table
Rule
Smiley
SpecialChar
Style
FontFormat
FontName
PageBreak
FontSize
TextColor
BGColor
FitWindow
ShowBlocks
About
Activation of SpellerPages
Open third_party/fckeditor/fckconfig.js
Replace line:
FCKConfig.SpellChecker = 'WSC';
by
FCKConfig.SpellChecker = 'SpellerPages';
= '"C:\Program Files\Aspell\bin\aspell.exe"';
$lang = 'en_US';
= 'aspell';
by
$aspell_prog
= '/usr/bin/aspell';
Replace line:
$aspell_prog
by
//$aspell_prog
= '"C:\Program Files\Aspell\bin\aspell.exe"';
= '"C:\Program Files\Aspell\bin\aspell.exe"';
Set
$lang = 'en_US';
Definition of Templates
Open third_party/fckeditor/fcktemplates.xml
&
'
'
<
<
>
>
"
"
Ä
Ö
Ü
ä
ö
ü
ß
What is CKFinder?
"CKFinder is a powerful and easy to use Ajax file manager for web browsers. Its simple interface
makes it intuitive and quick to learn for all kinds of users, from advanced professionals to Internet
beginners."
Features
Download CKFinder
You can download CKFinder for PHP here:
http://ckfinder.com/download
License
You can find the full license here: http://ckfinder.com/license
If you did not pay for a license, you may use unlicensed copies of CKFinder for the exclusive
purpose of demonstration. In this case you will be using CKFinder in "demo mode". Without
derogating from the forgoing, you may not use CKFinder in "demo mode" for commercial purposes.
CKFinder shall be used only for evaluation purposes and may not be used or disclosed for any
other purposes, including without limitation, external distribution or software development. You
may not remove demo notices from the interface nor disable the ability to display such notices or
otherwise modify CKFinder. Product support is not offered for CKFinder in "demo mode". [excerpt
from ckfinder license]
Install CKFinder
Copy ckfinder to <TLHOME>/third_party
Enable CKFinder
Open cfg/tl_fckeditor_config.js
uncomment those lines:
FCKConfig.LinkBrowserURL = '../../../ckfinder/ckfinder.html' ;
FCKConfig.ImageBrowserURL = '../../../ckfinder/ckfinder.html?type=Images'
;
FCKConfig.FlashBrowserURL = '../../../ckfinder/ckfinder.html?
type=Flash' ;
FCKConfig.LinkUploadURL =
'../../../ckfinder/core/connector/php/connector.php?
command=QuickUpload&type=Files' ;
FCKConfig.ImageUploadURL =
'../../../ckfinder/core/connector/php/connector.php?
command=QuickUpload&type=Images' ;
FCKConfig.FlashUploadURL =
'../../../ckfinder/core/connector/php/connector.php?
command=QuickUpload&type=Flash' ;
Open third_party/ckfinder/config.php
In the function CheckAuthentication() you must implement some kind of session validation. If not
EVERYONE is allowed to upload,delete or rename Images.
For testing purpose, replace:
return false;
by
session_start();
return (isset($_SESSION['currentUser']));
The baseurl tells ckinfder where to store files on your fileserver. Make sure that the given 'baseUrl'
folder exists in the server and has write permission.
We suggest:
$baseUrl = '<TLHOME>/upload_area/fckeditor_upload_area/';
Open cfg/tl_fckeditor_config.js
Set:
FCKConfig.LinkBrowser = true;
FCKConfig.ImageBrowser = true;
FCKConfig.FlashBrowser = true;
and
FCKConfig.LinkUpload = true;
FCKConfig.ImageUpload = true;
FCKConfig.FlashUpload = true;
if you want to allow Quickupload, which could result in many unsorted uploads.