上传图片使用Ckeditor和KCFinder

时间:2017-10-03 02:17:35

标签: upload ckeditor kcfinder

我想使用Ckeditor上传图片,我使用KCfinder。 我导入成功,但是当我单击Browse Server按钮时,会出现空对话框。我在流浪汉上使用centos

<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Demo CKEditor</title>
   <script src="ckeditor/ckeditor.js"></script>
</head>
<body>
   <h1>Demo CKEditor</h1>
   <form >
      <textarea name="ck" id="ck"></textarea>
      <script>CKEDITOR.replace('ck');</script>
   </form>
</body>
</html>

Config.js:

config.filebrowserBrowseUrl = 'ckeditor/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = 'ckeditor/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = 'ckeditor/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = 'ckeditor/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = 'ckeditor/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = 'ckeditor/kcfinder/upload.php?opener=ckeditor&type=flash';

empty dialog appears

tree forder

0 个答案:

没有答案