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管理注解方式(创建对象
- 下一篇: etcd nginx 容器_Etcd+C