为你而来

php fckeditor配置

<?php
	//加载入口文件
	include("FCKeditor/fckeditor.php");
	//建立对象
	$oFCKeditor = new FCKeditor('content') ;
	//FCKeditor所在的位置
	$oFCKeditor->BasePath = 'FCKeditor/' ;
	//工具按钮
	$oFCKeditor->Width='100%';
	$oFCKeditor->Height='450';
	$oFCKeditor->ToolbarSet = 'Default' ;
	//$oFCKeditor->Value		= $_SERVER['SCRIPT_NAME'];
	$oFCKeditor->Create();
?>


content:即textarea的name值;

fckconfig.js:此文件打开后有'Defaut'和'Basic'两种自定义工具条种类,可以修改;

FCKeditor/editor/filemanager/connectors/php/config.php:可以把第一个false改为true,方可上传文件;下一个'UserFilesPath'参数,即是保存上传文件的路径

posted on 2012-02-16 21:33  为你而来  阅读(215)  评论(0编辑  收藏  举报

导航