2

我想在 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>');
        }
    });
}

有没有很好的文档。请建议我!

4

0 回答 0