0
CKEditorツールバーにカスタムボタン(プラグイン)を作成しようとすると、一度クリックすると新しいウィンドウでプリセットされたURLが開きます。誰かがこれまでに私の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)}