php ckeditor 使用配置教程

<script type="text/javascript">
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'
});
</script>
<script src="{$serverpath}/includes/fckeditor/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="{$serverpath}/includes/fckeditor/ckfinder/config.js"" type="text/javascript"></script>
然后要在一个
<textarea cols=60 rows=22 name='content'  class='ckeditor' id='content' ></textarea><
CKEDITOR.replace('content',)所以name,id写上content和class要写ckeditor

{$serverpath}根目录来的http://127.0.0.1/admin我的项目名字
然后支持图片上传

你可能感兴趣的:(PHP)