My first working bbcode plugin is here
plugin.js
but when I add second plugin like first plugin (for example [code] ) , one plugin working not two plugin work.
please help me.
thank you.
plugin.js
CKEDITOR.plugins.add( 'php', { init: function( editor ) { editor.addCommand( 'eklePhp', { exec : function( editor ) { editor.insertHtml( '[PHP] [/PHP]' ); } }); editor.ui.addButton( 'Php', { label: 'Insert Php', command: 'eklePhp', icon: this.path + 'images/php.gif' } ); } } );
but when I add second plugin like first plugin (for example [code] ) , one plugin working not two plugin work.
please help me.
thank you.
Re: How can I add second plugin?
If all you want to do is to insert some content into the editor, you can use this plugin:
viewtopic.php?f=18&t=25546
And then in your config define the properties of each button that you want:
Besides that option, your problem might be due to overwriting the extraPlugins instead of listing the plugins:
bad:
Good
Re: How can I add second plugin?