Home >Backend Development >PHP Tutorial >ckeditor+ckfinder 如何添加上传按钮并实现上传普通文件

ckeditor+ckfinder 如何添加上传按钮并实现上传普通文件

WBOY
WBOYOriginal
2016-06-23 14:11:38996browse

ckeditor+ckfinder 如何添加上传按钮并实现上传普通文件


回复讨论(解决方案)

<script type="text/javascript" src="/lib/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/lib/ckfinder/ckfinder.js"></script> <form method="post"> <p> My Editor:<br /> <textarea name="contents"><p>这是测试数据</p></textarea> <script type="text/javascript"> CKEDITOR.replace( 'contents', {filebrowserBrowseUrl        : '/lib/ckfinder/ckfinder.html',filebrowserImageBrowseUrl   : '/lib/ckfinder/ckfinder.html?Type=Images',filebrowserFlashBrowseUrl   : '/lib/ckfinder/ckfinder.html?Type=Flash',   filebrowserUploadUrl        : '/lib/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',filebrowserImageUploadUrl   : '/lib/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',filebrowserFlashUploadUrl   : '/lib/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'}); </script> </p> <p> <input type="submit" /> </p> </form> 
路径按实际布局修改
上传功能已融合进去了
分别在:图像、flash、超链 中

能另外做个上传的按钮吗?

那就要做插件了
你可以搜索一下,资料也不少

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn