- 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.?>
- //该片段来自于http://www.codesnippet.cn/detail/250220132215.html
来源: http://www.codesnippet.cn/detail/250220132215.html