我想使用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';