Thứ Hai, 9 tháng 3, 2015

ckeditor chỉnh được 2 bảng



function  draw_input($name,$values='',$width=700,$height=400,$hidden=0,$ToolbarSet="Default"){
## thêm dòng này
    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->Config['ToolbarLocation'] = 'Out:xToolbar' ; ## bỏ dòng này
    $oFCKeditor->Width=$width;
    $oFCKeditor->Height=$height;
    $oFCKeditor->ToolbarSet=$ToolbarSet;
    $oFCKeditor->Value    = stripslashes($values);
   
    CKFinder::SetupFCKeditor( $oFCKeditor, INCLUDE_PATH.'ckfinder/' ) ;
    $oFCKeditor->Create() ;
}

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

Đăng nhận xét