[help] Add custom plugin/toolbar button (mediawiki)
(function(){
b='myplugin';
CKEDITOR.plugins.add(b,{
init:function(c){
c.addCommand(b,a);
c.ui.addButton('myplugin',{
label:'WAAAAAAAAAAA',
icon: this.path + 'icon.png',
command: b
});
}
});
})();
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
//config.enterMode = CKEDITOR.ENTER_BR;
CKEDITOR.config.toolbar = [['myplugin','Bold', 'Italic', 'Underline' ]];
config.extraPlugins = 'myplugin';
};
Re: [help] Add custom plugin/toolbar button (mediawiki)
You must declare your plugin in ckeditor.js
Open this file and search for 'about' string. You will find a place where all the plugins are registered.
Add your plugin name here.
Re: [help] Add custom plugin/toolbar button (mediawiki)
Re: [help] Add custom plugin/toolbar button (mediawiki)
Re: [help] Add custom plugin/toolbar button (mediawiki)
No, that's not a good idea because that means that you have to change it for every update.
There's some other problem with that code, and he should research that problem instead of trying to workaround it and creating a bigger problem.
Re: [help] Add custom plugin/toolbar button (mediawiki)
Re: [help] Add custom plugin/toolbar button (mediawiki)