Hello!
I can't figure out how to keep my plugin (a rich combo) enabled in source mode.
The code snippet below doesn't work...
Best regards,
Fabian
I can't figure out how to keep my plugin (a rich combo) enabled in source mode.
The code snippet below doesn't work...
editor.addCommand( 'myPlugin', { modes : { wysiwyg : 1, source : 1 } });
editor.ui.addRichCombo('MyPlugin', { label : 'MyPlugin', title : 'MyPlugin', className : 'myPlugin', command : 'myPlugin', panel : {...
Best regards,
Fabian
Re: Keep RichCombo enabled in source mode
{label: "Snippit",
title: "Snippit",
...
modes: { wysiwyg:1, source:1 },
...}
That will keep the combo box enabled in source mode. The next issue is getting the selected text to insert. Currently working on that.
Re: Keep RichCombo enabled in source mode
If you're looking to insert text into the source area then refer to this post.
http://cksource.com/forums/viewtopic.php?t=23425