开发者

CK editor and missing image URL

I have integrated CKeditor with my admin panel (php) I have writtien a function for calling editor:

function editor(){
$txt = '<script type="text/javascr开发者_如何学Cipt">
        CKEDITOR.replace( "kabst",{
            filebrowserUploadUrl : "'.UPLOAD_SCRIPT.'" });                          
            </script>';
    return $txt;
}

and define:

 define("UPLOAD_SCRIPT", $_SERVER['DOCUMENT_ROOT']."/cms/dashboard/upload.php");

I have error: NOT FOUND in ck upload. But upload.php is working. What is wrong in my code? Thanks in advance


Maybe use $_SERVER['SERVER_ROOT'] instead of DOCUMENT_ROOT ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜