Ckfinder& #39;s浏览在ckeditor php上不能正常工作的图像


ckfinder's browse for images not working properly on ckeditor php

我在一个核心php工作。有一个页面供产品添加或编辑标题、描述、图片等。

对于产品描述,我使用ckeditor插件,它工作完美,但没有图像上传的选项,所以我添加了一个插件ckfinder来上传图像。当我点击浏览图片上传时,它会打开一个空白窗口,显示这条信息

由于安全原因,文件浏览器被禁用。请联系您的系统管理员,检查CKFinder配置文件。

我不知道这是什么意思,也不知道如何配置。

这是我的HTML代码索引。HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<textarea name="testEditor" id="testEditor"></textarea>
<script>
    // Replace the <textarea id="editor1"> with a CKEditor
    // instance, using default configuration.
    CKEDITOR.replace( 'testEditor',
                        {
                            filebrowserBrowseUrl : 'http://localhost/editor/ckfinder/ckfinder.html',
                            filebrowserImageBrowseUrl : 'http://localhost/editor/ckfinder/ckfinder.html?type=Images',
                            filebrowserFlashBrowseUrl : 'http://localhost/editor/ckfinder/ckfinder.html?type=Flash',
                            filebrowserUploadUrl : 'http://localhost/editor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                            filebrowserImageUploadUrl : 'http://localhost/editor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                            filebrowserFlashUploadUrl : 'http://localhost/editor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                            filebrowserWindowWidth : '1000',
                            filebrowserWindowHeight : '700'
                        }
                    );
</script>

请帮助我,我是第一次使用ckeditor和ckfinder。

检查CKFinder根目录下的config.php文件

默认情况下,由于身份验证限制,CKFinder将无法工作。您必须首先确保正确配置了它,然后启用它。这是为了确保没有未经授权的用户可以上传和访问您的服务器上的文件。

一旦您完全配置了CKFinder,您就可以启用它了。使用CheckAuthentication()函数。在这个函数中,您必须实现确保请求来自经过身份验证的用户的代码。这通常是通过在用户登录到您的系统时分配一个会话变量来完成的。

你可以在这里的文档中阅读更多。

请注意,与CKEditor不同,CKFinder不是开源产品,您需要许可才能将其用于评估以外的目的。