我爱小虾 发表于 2017-3-23 09:58:23

php中使用fckeditor

  fckeditor是从所周知的一个前台页面编辑插件,怎么用?看如下:
  我用的是debian系统,其它系统我不知道怎么安装。
  apt-get install fckeditor
  之后就可以用了,把/usr/share/fckeditor目录复制到你要使用的某个目录下,然后在php页中如下使用:
  <?php
            $oFCKeditor = new FCKeditor('FCKeditor1') ;//建立对象
            $oFCKeditor->BasePath = 'FCKeditor/' ;//FCKeditor所在的位置
            $oFCKeditor->ToolbarSet = 'Default' ;//工具按钮
            $oFCKeditor->Create('EditorDefault', '60%',150) ;
?>
上边这一段是从网上来的。
  <a href="http://www.diybl.com/course/4_webprogram/php/phpjs/20071021/78673.html">上边这一段是从网上来的。</a>
  快去试试效果吧。
页: [1]
查看完整版本: php中使用fckeditor