CKEDITOR.replace('content',
{
filebrowserBrowseUrl : '{$serverpath}/includes/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : '{$serverpath}/includes/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '{$serverpath}/includes/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '{$serverpath}/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '{$serverpath}/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '{$serverpath}/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
然后要在一个
<
CKEDITOR.replace('content',)所以name,id写上content和class要写ckeditor
{$serverpath}根目录来的http://127.0.0.1/admin我的项目名字
然后支持图片上传