0
我想创建,一旦点击将在新窗口中打开一个预先设置的URL的CKEditor的工具栏上的自定义按钮(插件) - 任何人都可以提供一些帮助,这是我目前在我的plugin.js文件中得到的。CKEDITOR 3.X插件 - 创建一个自定义按钮,将打开一个新的链接
我基本上只是想说,一旦单击此按钮转到一个URL在新窗口中。有任何想法吗?
CKEDITOR.plugins.add('inserthtml', {
requires: ['dialog'],
lang : ['en'],
init:function(a) {
var b="inserthtml";
var c=a.addCommand(b,new CKEDITOR.dialogCommand(b));
c.modes={wysiwyg:1,source:0};
c.canUndo=false;
a.ui.addButton("inserthtml",{
label:a.lang.inserthtml.title,
command:b,
icon:this.path+"inserthtml.gif"
});
CKEDITOR.dialog.addIframe(b, b, 'http://pixlr.com/express', 800, 640)}
});
我在Firebug
得到CKEDITOR.dialog.addIframe is not a function
CKEDITOR.dialog.addIframe(b, b, 'http://pixlr.com/express', 800, 640)}