php调用fckeditor网络编辑器
适用于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.?>
- 上一篇:分析用户ip归属地
- 下一篇:.PHP生成静态html文件的方法
精彩图集
精彩文章






