viewtopic.php?f=11&t=19692
CKEDITOR.plugins.add('newplugin',
{
init: function (editor) {
var pluginName = 'newplugin';
editor.ui.addButton('Newplugin',
{
label: 'My New Plugin',
command: 'OpenWindow',
icon: CKEDITOR.plugins.getPath('newplugin') + 'logo_ckeditor.png'
});
var cmd = editor.addCommand('OpenWindow', { exec: showMyDialog });
}
});
function showMyDialog(e) {
[color=#FF0000] [b]It's here that i have to do what i want[/b][/color]
}

Re: Add a button, ok, but the function ...
Can you help me ?
Bests regards
Re: Add a button, ok, but the function ...