0
まずはご協力いただきありがとうございます。CKEditor:プラグインボタンが表示されていますが、コマンドが機能していません
私はCKEditorバージョンのための私の最初のプラグインを作成しようとしました。 私は公式チュートリアルを使用しました:http://docs.ckeditor.com/#!/guide/plugin_sdk_sample
ボタンがツールバーに表示されます。しかし、これをクリックすると何も起こりません。
はここplugin.jsあなたの助け
CKEDITOR.plugins.add('drmail', {
icons: 'drmail',
init: function(editor) {
editor.addCommand('drmailCommand', {
exec: function(editor) {
var now = new Date();
editor.insertHtml('The current date and time is: <em>' + now.toString() + '</em>');
}
});
editor.ui.addButton('DRmail', {
label: "E-Mail Adresse hinzufügen",
command: 'drmailCommand',
toolbar: 'insert'
});
}
});
ブラウザコンソールでエラーが表示されますか? JSデバッガを配置しようとしましたか? – par
実例(jsfiddle.net)を提供してください。そうしないと、本当に助けにならない – Dekel