ckeditorカスタムプラグインの2
もしすべてのカスタムプラグインがjsonの方法でページを書くのが明らかに不快であれば、どのように私のページをポップアップしますか?
以下は簡単な例で、自分のページをポップアップすることができて、詳しく書いていません.
その関数にはいろいろなことができるので、これで大空が広がります.
以下は簡単な例で、自分のページをポップアップすることができて、詳しく書いていません.
editor.addCommand( pluginName, {exec:function (e){window.open('/dialogs/mydialog.html');}} );
editor.ui.addButton('MyButton',
{
label : editor.lang.mine,
command : pluginName
});
その関数にはいろいろなことができるので、これで大空が広がります.