CKeditor imageuploader imagebrowser位置错误

时间:2017-07-08 11:12:56

标签: javascript php jquery ckeditor

我有CKeditor

E:\XAMPP\htdocs\projekt2\ck

在使用CKeditor的页面上,我转到浏览器服务器

enter image description here

它会在弹出窗口中打开错误的脚本位置

enter image description here

我不知道这怎么可能。

一切都不在http://localhost/projekt2/admin/ckeditor/plugins/ ....

但是

http://localhost/projekt2/ck .....

从那里开始编写脚本

在PHP中,我通过<script src="<?= base_url('ck/ckeditor.js') ?>"></script>来调用它,从http://localhost/projekt2/ck

获取它

1 个答案:

答案 0 :(得分:0)

您使用的imageuploader插件具有filebrowserBrowseUrl配置选项的默认值(您可以在插件源代码中看到它 - https://github.com/xsmo/Image-Uploader-and-Browser-for-CKEditor/blob/master/plugin.js)。

要使用不同的上传目录,请更改filebrowserBrowseUrl配置,例如:

CKEDITOR.replace( 'editor', {
    filebrowserBrowseUrl = 'http://localhost/projekt2/ck/.../imgbrowser.php';
} );
相关问题