简体   繁体   English

CK编辑器和缺少图像URL

[英]CK editor and missing image URL

I have integrated CKeditor with my admin panel (php) I have writtien a function for calling editor: 我已经将CKeditor与我的管理面板(php)集成在一起,并且为调用编辑器提供了writtien函数:

function editor(){
$txt = '<script type="text/javascript">
        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. 我有错误:未在ck上传中找到。 But upload.php is working. 但是upload.php正在工作。 What is wrong in my code? 我的代码有什么问题? Thanks in advance 提前致谢

也许使用$ _SERVER ['SERVER_ROOT']代替DOCUMENT_ROOT吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM