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

php fckeditor配置

WBOY
Release: 2016-06-23 14:34:57
Original
1052 people have browsed it

<?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();?>
Copy after login


content:即textarea的name值;

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template