我怎样才能用tinymce打开一个新的空白窗口?

发布于 2024-12-02 06:30:20 字数 361 浏览 6 评论 0原文

我找到了这段代码:

ed.windowManager.open({
                    file: url + '/youtube.htm',
                    width: 320 + parseInt(ed.getLang('example.delta_width', 0)),
                    height: 120 + parseInt(ed.getLang('example.delta_height', 0)),
                    inline: 1
}

但我不知道如何使用它打开一个空白的新窗口,有人可以帮助我吗?

谢谢。

I found this code:

ed.windowManager.open({
                    file: url + '/youtube.htm',
                    width: 320 + parseInt(ed.getLang('example.delta_width', 0)),
                    height: 120 + parseInt(ed.getLang('example.delta_height', 0)),
                    inline: 1
}

but i don't know how to use it to open a blank new window, could someone help me?

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别靠近我心 2024-12-09 06:30:20

您可以使用这个(没有tinymce解决方案)

window.open (url + '/youtube.htm', "mywindow","resizable=1,inline=1,width="+320 + parseInt(ed.getLang('example.delta_width', 0))+"height="+120 + parseInt(ed.getLang('example.delta_height', 0)) );

这里是有关如何使用所有可能选项的教程的链接:http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

这里是一些可以在tinymce上运行的代码,并且很容易与tinymce编辑器实例通信:

ed.windowManager.open({
  url: tinymce.baseURL + '/plugins/myplugin/test.html', // empty?
  width: 600 + parseInt(ed.getLang('example.delta_width', 0)),
  height: 200 + parseInt(ed.getLang('example.delta_height', 0)),
  inline: true
}, {
  own_param: 'my_param',
  own_param2: 'my_param2'
});

You may use this (no tinymce solution)

window.open (url + '/youtube.htm', "mywindow","resizable=1,inline=1,width="+320 + parseInt(ed.getLang('example.delta_width', 0))+"height="+120 + parseInt(ed.getLang('example.delta_height', 0)) );

Here is a link to a tutorial on how to use all possible options: http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

Here is some code that will work from tinymce and is easily able to communicate with the tinymce editor instance:

ed.windowManager.open({
  url: tinymce.baseURL + '/plugins/myplugin/test.html', // empty?
  width: 600 + parseInt(ed.getLang('example.delta_width', 0)),
  height: 200 + parseInt(ed.getLang('example.delta_height', 0)),
  inline: true
}, {
  own_param: 'my_param',
  own_param2: 'my_param2'
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文