php fckeditor demo,如何使用PHP添加fckeditor
生活随笔
收集整理的这篇文章主要介绍了
php fckeditor demo,如何使用PHP添加fckeditor
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
[更新答案]
你需要把你的fckeditor代码放在
标签而不是在顶部。此外,
$_POST["FCKEditor"]
需要放进去
$oFCKeditor->Value
变量。
这样做:它在我的机器上工作正常,并在fckeditor文本区域内显示格式化的HTML:
EditorTitle :
include("fckeditor.php");
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
$oFCKeditor = new FCKeditor('FCKeditor') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value = $_POST["FCKeditor"] ;
$oFCKeditor->Create() ;
?>
总结
以上是生活随笔为你收集整理的php fckeditor demo,如何使用PHP添加fckeditor的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: IOC操作Bean管理注解方式(创建对象
- 下一篇: php 比java 快_php比java