17 lines
470 B
JavaScript
17 lines
470 B
JavaScript
CKEDITOR.plugins.add('wikilink',
|
|
{
|
|
init: function(editor)
|
|
{
|
|
var pluginName = 'wikilink';
|
|
CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/wikilink.js');
|
|
|
|
editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
|
|
editor.ui.addButton('Wikilink',
|
|
{
|
|
label: 'Wikilink',
|
|
command: pluginName,
|
|
icon : this.path + 'images/wikilink.gif'
|
|
});
|
|
}
|
|
});
|