Home >Backend Development >PHP Tutorial >php fckeditor配置

php fckeditor配置

WBOY
WBOYOriginal
2016-06-23 14:34:571074browse

<?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'参数,即是保存上传文件的路径

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php+soap 入门Next article:php中ASCⅡ码