龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

php调用fckeditor网络编辑器

时间:2014-07-22 14:52来源: 作者: 点击:
分享到:
适用于php,需要下载fckeditor包
适用于php,需要下载fckeditor包
1.<?php   
2.include('../fckeditor/fckeditor.php') ;  //把文件包含进来 
3.$oFCKeditor = new FCKeditor('content') ;  //表单项的名称 
4.$oFCKeditor->BasePath="../fckeditor/";  //编辑器所在目录 
5.$oFCKeditor->ToolbarSet="default";  //工具栏的名字 
6.$oFCKeditor->Height='350px';  //高度 
7.$oFCKeditor->Width='100%';  //宽度 
8.$oFCKeditor->Value="";  //初始值 
9.$myeditor=$oFCKeditor->CreateHtml();  //在要显示编缉器的地方输出变量$myeditor的值就行了 
10.?> 
精彩图集

赞助商链接