How can I insert a widget when one of the dropdown menu in Richcombo is clicked?
Can I do something like this?
CKEDITOR.plugins.add('my_plugin', { init: function(editor) { editor.ui.addRichCombo('my_plugin', { label: 'plugin1', init: function() { this.add('FIRST_NAME', 'FIRST NAME', 'Insert FIRST NAME'); }, onclick: function(value) { editor.widgets.add('widget1', { template: '<div class="simplebox">' + '<h2 class="simplebox-title">Title</h2>' + '<div class="simplebox-content"><p>Content...</p></div>' + '</div>' }); } )}; } });
I also asked this question here http://stackoverflow.com/questions/26475998/ckeditor-4-3-widget-richcombo