开发者

Integrating a dynamic file browser with CKeditor

I have a file browser / uploader developed for my own site.

Is there anyway to have CKEditor call a function to show a file browser, instead of opening a new wind开发者_如何转开发ow with a url.

Edit: Specifically, I want to show a div already on the page.


Well, with ckfinder, then you can do it so.

CKEDITOR.replace("pagebody",
        {

        filebrowserBrowseUrl :'ckfinder/ckfinder.html',
        filebrowserImageBrowseUrl : "ckfinder/ckfinder.html?Type=Images",
        filebrowserFlashBrowseUrl : "ckfinder/ckfinder.html?Type=Flash",
        filebrowserUploadUrl : "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files",
        filebrowserImageUploadUrl : "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images",
        filebrowserFlashUploadUrl : "ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash"

        });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜