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)}