Jquery tinyMCE模态弹出窗口与其他用途一样

Jquery tinyMCE模态弹出窗口与其他用途一样,jquery,tinymce,Jquery,Tinymce,我正在尝试为我的tinyMCE编辑器实现一个额外的按钮。我以localhost的源代码为例:61025/Web/Scripts/tinymce/themes/advanced/source_editor.htm,它是html(source)按钮的引用 我如何创建一个按钮来引用我自己的文件,例如: <input type=button value=html onclick="open_source_html()"> 而open_source_html()应该打开my的Tinym

我正在尝试为我的tinyMCE编辑器实现一个额外的按钮。我以localhost的源代码为例:61025/Web/Scripts/tinymce/themes/advanced/source_editor.htm,它是html(source)按钮的引用

我如何创建一个按钮来引用我自己的文件,例如:

<input type=button value=html onclick="open_source_html()">

而open_source_html()应该打开my的Tinymcepoup: localhost:61025/Web/Scripts/tinymce/themes/advanced/source\u editor\u CUSTOM.htm 文件


请帮帮我。

阿龙链接是个不错的链接。您还可以查看tinymce插件目录中的一些插件

tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    ...
    setup : function(ed) {
        // Add a custom button
        ed.addButton('yourbutton', {
            title : 'Your button',
            image : 'img/example.gif', // path to your image
            onclick : function() {
                // Add you own code to execute something on click
                open_source_html();
            }
        });
    }
)};

明白了。谢谢大家。

谢谢你们的评论,我找到了这个链接,但不清楚。另外,这个链接很有用,我用它在编辑器中插入了一些东西。但我也希望有一个弹出窗口,在那里我可以放置一些其他字段,谢谢谢谢谢谢,谢谢评论,我找到了这个链接,但不清楚。这个链接正是我想从这个链接中找到的:
tinyMCE.activeEditor.windowManager.open({
            url : 'http://localhost/Save.html',
            width : 520,
            height : 340,
            resizable : "yes",
            inline : true,
            close_previous : "yes"

            });