function draw_input($name,$values='',$width=700,$height=400,$hidden=0, $ToolbarSet="Default"){
include_once(INCLUDE_PATH."fckeditor/fckeditor.php") ;
require_once(INCLUDE_PATH."ckfinder/ckfinder.php");
//$oFCKeditor->BasePath = "/fckeditor/" ; // '/fckeditor/' is the default value.
$oFCKeditor->BasePath = '../fckeditor/' ;
$oFCKeditor = new FCKeditor($name) ;
$oFCKeditor->IncludeLatinEntities = false ;
$oFCKeditor->Config['SkinPath']="/fckeditor/editor/skins/office2003/";
$oFCKeditor->Width=$width;
$oFCKeditor->Height=$height;
$oFCKeditor->ToolbarSet=$ToolbarSet;
$oFCKeditor->Value = stripslashes($values);
CKFinder::SetupFCKeditor( $oFCKeditor, INCLUDE_PATH.'ckfinder/' ) ;
$oFCKeditor->Create() ;
}
link web: phuongthao

Không có nhận xét nào:
Đăng nhận xét