开发者

Integrating a dynamic file browser with CKeditor

开发者 https://www.devze.com 2023-02-23 06:45 出处:网络
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.

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

精彩评论

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