FCKeditor的配置实例

来源:互联网 发布:什么是数据采集器 编辑:程序博客网 时间:2024/05/20 17:41
使用的FCKeditor为版本为2.4,不同的版本可能稍微有点不同<?phpinclude("fckeditor.php") ; // 用于载入FCKeditor类文件$basepath=$_SERVER['PHP_SELF'];$basepath=dirname($basepath);/*<?php $oFCKeditor = new FCKeditor('FCKeditor1')   // 创建FCKeditor实例 $oFCKeditor->BasePath = './fckeditor/';        // 设置FCKeditor目录地址 $FCKeditor->Width='100%';                //设置显示宽度 $FCKeditor->Height='300px';               //设置显示高度的高度 $oFCKeditor->Create()                     // 创建编辑器 ?> */echo "输出FCK编辑器的内容:".$_POST['FCKeditor1'];?><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>用PHP调用FCKeditor</title></head><body><form action="index.php" method="post" name="exapmle"><?php$oFCKeditor = new FCKeditor('FCKeditor1') ;  // 创建FCKeditor实例,可创建多个实例$oFCKeditor->BasePath = './';      // 设置FCKeditor目录地址$oFCKeditor->Value="在这里添加你想写的内容吧";$oFCKeditor->Width='70%';$oFCKeditor->Create() ;                      // 创建编辑器?><input name="ok" type="submit" value="提交" ></form></body></html>

原创粉丝点击