0

古い fckeditor を ckeditorv3 にアップグレードする作業を行っています。ほとんどの API が更新されていることがわかりました。内部で使用されるプラグインがあり、そのコンテンツは aspx ページであり、このページは動的リストを提供します。そのプラグインをアップグレードして、新しい ckeditorv3 で動作するようにしたいと考えています。

HTMLページをckedirotダイアログに追加する方法についてのチュートリアルリンクを誰かに教えてもらえますか?

http://www.kusog.org/articles/OtherJavaScriptLibraries_WritingCustomCKEditorPlugins/が見つかりましたが、これは基本的な情報にすぎません。私がやりたいことは、html ページをプラグインのダイアログに埋め込むことです。

4

1 に答える 1

0

わかりました、私は解決策を見つけました。ダイアログ iframe にページをロードする必要があります。

CKEDITOR.plugins.add('customfields',
{
    init: function(editor) {
        editor.addCommand('customfields', new CKEDITOR.dialogCommand('customfields'));
        editor.ui.addButton('Customfields',
        {
            label: 'Custom Fields',
            command: 'customfields',
            icon: this.path + 'CustomFields.gif'
        });

        CKEDITOR.dialog.addIframe(
            'customfields',
            'Custom Fields',
            this.path + 'CustomFields2.aspx', null, null,
            function() { alert('aaaa'); }, function() { alert('bbbb'); }
        );
    }
});
于 2013-02-28T16:32:17.037 に答える