Php 想要TinyMCE的专用按钮AjaxFileManager吗

Php 想要TinyMCE的专用按钮AjaxFileManager吗,php,javascript,tinymce,Php,Javascript,Tinymce,我想在tinyMCE编辑器中添加一个按钮,该按钮将打开AjaxFileBrowser并选择一个文件,然后单击“选择”按钮将返回编辑器中的文件路径,就像在“插入图像/媒体”窗口的“图像/媒体url”字段中一样 实际上,我需要一种方法来添加一种直接访问AjaxFileManager的方法 setup : function(ed) { ed.addButton('MyButton', { title : 'MyButton', image : './images

我想在tinyMCE编辑器中添加一个按钮,该按钮将打开AjaxFileBrowser并选择一个文件,然后单击“选择”按钮将返回编辑器中的文件路径,就像在“插入图像/媒体”窗口的“图像/媒体url”字段中一样

实际上,我需要一种方法来添加一种直接访问AjaxFileManager的方法

setup : function(ed) {
    ed.addButton('MyButton', {
        title : 'MyButton',
        image : './images/copy.jpg',
        onclick : function() {
        ajaxfilemanager('','','file',window); // The first arguement is return field as I know but how to use it??
            ed.focus();
            ed.selection.setContent('<tittle>' + ed.selection.getContent() + '</tittle>');
        }
    });
}
设置:功能(ed){
ed.addButton('MyButton'{
标题:“我的按钮”,
图像:'./images/copy.jpg',
onclick:function(){
ajaxfilemanager(“”,,'file',window);//第一个参数是我知道的返回字段,但如何使用它??
ed.focus();
ed.selection.setContent(“”+ed.selection.getContent()+“”);
}
});
}
这方面有什么好的文档吗。请推荐我