PHP在線編輯器fckeditor應用

1、fckeditor配置

$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = dirname($sBasePath).'/'; 
dirname ,取得路徑目錄名的函數


$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath   = $sBasePath ;

2、fckeditor的應用

$oFCKeditor->Create();  創建一個窗口出來

$oFCKeditor->Value='初始值';

提交時,直接使用實例化時的名稱 'FCKeditor1'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章