I have successfully integrated CKEditor into my project and have just built my first "Hello, world!" type plugin. The plugin works great in "wysiwyg" mode, but as soon as switch to "Source" mode, the plugin becomes automagically disabled.
No amount of coercion on my part has been able to keep the plugin button enabled. I know this is possible because by default, the "Select All" and "About" toolbar buttons in CKEditor are enabled for both wysiwyg and source modes.
I've seen references to a "modes" setting for toolbar items, but have been unable to uncover the required syntax. Here's an unsuccessful example of what I've tried by editing my own customConfig file:
config.toolbar = [
{ name: 'custom', items: ['HelloWorld'], modes: { wysiwyg: 1, source: 1 } },
{ name: 'about', items: ['About'] }
];
This doesn't work either:
config.toolbarGroups = [
{ name: 'custom', modes: { wysiwyg: 1, source: 1 } },
{ name: 'about' }
];
How can I make a CKEditor plugin toolbar button enabled for both modes?