Советую настраивать на винде (там проще)
Включи такой жаваскрипт в страницу с textarea
он автоматом заменит все текстареа
function textareaReplace(what)
{
var oFCKeditor = new FCKeditor(what) ; // Instantiate an editor with
// the name of the TEXTAREA input.
oFCKeditor.BasePath = "/FCKeditor/" ; // This may need to change depending on the name
// of the folder you have FCKeditor in.
oFCKeditor.Height = "300"; // NOTE: do not put px, just leave the numbers as is
// See the documentation for more parameters. Width, setToolbar etc...
// NOTE: it is important to have the ../../ in the file path
// There probably is a bug that needs to be fixed.
// Also we pass the Type and the ServPath variable
//oFCKeditor.Config['ImageBrowserURL'] = oFCKeditor.BasePath + '../../filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&Type=File&ServerPath=/';
//oFCKeditor.Config['LinkBrowserURL'] = oFCKeditor.BasePath + '../../filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&Type=File&ServerPath=/';
// This line must come in last once all the configs have been made.
oFCKeditor.ReplaceTextarea() ;
}
window.onload = function()
{
var doc_tables = document.body.getElementsByTagName("textarea");
for (i=0; i<doc_tables.length; i++)
{
textareaReplace(doc_tables
.name);
}
}
вот коннектор.пхп
<?php
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: config.php
* Configuration file for the File Manager Connector for PHP.
*
* File Authors:
* Frederico Caldeira Knabben ([email protected])
*/
global $Config ;
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/UserFiles/' ;
// 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'] = '' ;
$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;
$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media'] = array() ;
?>
Надеюсь помог.