php --- fckeditor

在php中使用fckeditor時:php

在./fckeditor/editor/filemanager/connectors/php/config.php中編輯器

修該$_SESSION['user_name']中username值和$Config['UserFilesPath'] =$root_path.'Attachments/'.$date.'/';改成$Config['UserFilesPath'] =ROOT_PATH.'Attachments/'.$date.'/';it

在頁面中調用date

include("FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor1') ; // 建立FCKeditor實例 
$oFCKeditor->BasePath = 'fckeditor/'; // 設置FCKeditor目錄地址  
$FCKeditor->Width='100%'; //設置顯示寬度  
$FCKeditor->Height='300px'; //設置顯示高度的高度    
$fck=$oFCKeditor->CreateHtml() ; // 建立編輯器file

相關文章
相關標籤/搜索