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 ?
精彩评论