Hi,
I am working on developing a custom dropdown plugin for Tiny MCE. The values added in the dropdown will be adding custom div and span classes to the data in the text area.
Based on the code provided for a custom dropdown plugin from the Moxicode site , i have added the following code
setup: function(editor) {
editor.addButton('mybutton', {
type: 'menubutton',
text: 'My button',
icon: false,
menu: [
{text: 'Menu item 1', onclick: function() {editor.insertContent('Menu item 1');}},
{text: 'Menu item 2', onclick: function() {editor.insertContent('Menu item 2');}}
]
});
}
But the mce plugin only displays a button without any dropdown values in it.
Can an expert provide a solution to the issue.
Thank you