Php 如何在Codeigniter的ckeditor中添加图像上传器插件的路径?

Php 如何在Codeigniter的ckeditor中添加图像上传器插件的路径?,php,ckeditor,codeigniter-3,Php,Ckeditor,Codeigniter 3,我已经添加了图像上传插件的ckeditor现在谁能告诉我如何添加浏览服务器路径?我正在使用Coedigniter,并已将文件夹保存在资产中。 我在网上发现了一些东西,上面写着你可以添加 plugins->imageuploader->plugin.js 在plugin.js中 CKEDITOR.plugins.add( 'imageuploader', { init: function( editor ) { editor.config.filebrowse

我已经添加了图像上传插件的ckeditor现在谁能告诉我如何添加浏览服务器路径?我正在使用Coedigniter,并已将文件夹保存在资产中。 我在网上发现了一些东西,上面写着你可以添加

plugins->imageuploader->plugin.js
在plugin.js中

CKEDITOR.plugins.add( 'imageuploader', {
    init: function( editor ) {
        editor.config.filebrowserBrowseUrl = 'ckeditor/plugins/imageuploader/imgbrowser.php';
    }
});
我找到了这些。现在,当我单击添加图像并单击
浏览服务器
时,它抛出404 Not found

我甚至附上了一个图像的问题。

以下是jquery代码,当在文件浏览器中选择文件时,该代码返回ckeditor的路径

<div id="fileList-wrapper">
<?php 
    $fileList = glob('assets/uploads/*');
    foreach($fileList as $fileName){
    ?>
        <div class="thumbnail">
        <img src="<?= base_url().$fileName?>" data-id="<?= base_url().$fileName?>" width="140" height="120"/>
                        <br />
                        <?= $fileName ?>
                    </div>
                <?php
            }
            ?>
        </div>
$(文档).ready(函数(){
var funcNum=
$('#文件列表包装器')。在('click','img',function()上{
var fileUrl=$(this.attr('data-id');
window.opener.CKEDITOR.tools.callFunction(funcNum,fileUrl);
window.close();
});
});
这里是用于在文件浏览器中显示文件的文件php代码

<div id="fileList-wrapper">
<?php 
    $fileList = glob('assets/uploads/*');
    foreach($fileList as $fileName){
    ?>
        <div class="thumbnail">
        <img src="<?= base_url().$fileName?>" data-id="<?= base_url().$fileName?>" width="140" height="120"/>
                        <br />
                        <?= $fileName ?>
                    </div>
                <?php
            }
            ?>
        </div>

“数据id=”“width=“140”height=“120”/>

下面是需要添加到文件中的js文件

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="//cdn.ckeditor.com/4.6.2/full-all/ckeditor.js"></script>


你可能需要添加css样式

我也在寻找答案。希望能有所帮助