내가 CKEditor의 도구 모음에 버튼을 추가하고 싶지만 버튼을 appearing.This하지 나타나지 않는 경우가 _source/plugins/footnote/
CKEditor : 버튼
CKEDITOR.plugins.add('footnote',
{
init: function(editor)
{
var pluginName = 'footnote';
CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/footnote.js');
editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
editor.ui.addButton('Footnote',
{
label: 'Footnote or Citation',
command: pluginName
});
}
});
에 저장 플러그인의 창조를위한 코드입니다 그리고 이것은 config.js의 코드
CKEDITOR.editorConfig = function(config)
{
config.toolbar = 'MyToolbar';
config.extraPlugins = 'footnote';
config.toolbar_MyToolbar =
[
['Bold','Footnote','Italic']
];
};
그냥 굵은 기울임 표시되지 않는 toolbar.But 각주 버튼에 나타나고있다. 도움 주셔서 감사합니다.
CKEDITOR.plugins.add('footnote',
{
icons: 'myfootnote',
init: function (editor) {
var pluginName = 'footnote';
CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/footnote.js');
editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
editor.ui.addButton('Footnote',
{
label: 'Footnote or Citation',
icon: 'myfootnote',
command: pluginName
});
}
});
가 /plugins/footnote/icons/myfootnote.png에 아이콘을 만들어야합니다 :