我已将 kcfinder 与 config.js 文件集成,但浏览服务器选项仍然不可见
I have integrated kcfinder with config.js file but still browse server option not visible
我已将 kcfinder 与 config.js 集成,但浏览服务器按钮不可见。
我正在使用 xampp 服务器和我的主机文件结构如下
xampp -> htdocs -> ckeditor_test -> admin -> index.php
xampp -> htdocs -> ckeditor_test -> ckeditor -> config.js
xampp -> htdocs -> ckeditor_test -> kcfinder
而我的index.php代码&confing.js集成代码如下
index.php
<html>
<head>
<title></title>
<script type="text/javascript" src="../ckeditor/ckeditor.js">
</script>
</head>
<body>
<textarea name="editor" class="ckeditor"></textarea>
</body>
config.js
CKEDITOR.editorConfig = function(config) {
// ...
config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=flash';
// ...
};
尝试清除浏览器缓存。
此外,由于您的 index.php
在 admin
文件夹中,您需要像这样为 kcfinder
建立一个文件夹:
CKEDITOR.editorConfig = function(config) {
// ...
config.filebrowserBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=flash';
// ...
};
我已将 kcfinder 与 config.js 集成,但浏览服务器按钮不可见。
我正在使用 xampp 服务器和我的主机文件结构如下
xampp -> htdocs -> ckeditor_test -> admin -> index.php
xampp -> htdocs -> ckeditor_test -> ckeditor -> config.js
xampp -> htdocs -> ckeditor_test -> kcfinder
而我的index.php代码&confing.js集成代码如下
index.php
<html>
<head>
<title></title>
<script type="text/javascript" src="../ckeditor/ckeditor.js">
</script>
</head>
<body>
<textarea name="editor" class="ckeditor"></textarea>
</body>
config.js
CKEDITOR.editorConfig = function(config) {
// ...
config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=flash';
// ...
};
尝试清除浏览器缓存。
此外,由于您的 index.php
在 admin
文件夹中,您需要像这样为 kcfinder
建立一个文件夹:
CKEDITOR.editorConfig = function(config) {
// ...
config.filebrowserBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '../kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '../kcfinder/upload.php?opener=ckeditor&type=flash';
// ...
};