editor.ui.registry.addSplitButton('myButton', {
text: 'My Button',
icon: 'info',
tooltip: 'This is an example split-button',
onAction: function () {
//editor.insertContent('<p>You clicked the main button</p>');
},
onItemAction: function (api, value) {
editor.insertContent(value);
},
fetch: function (callback) {
var items = [
{ type: 'choiceitem', text: 'One', value: 'one ' },
{ type: 'choiceitem', text: 'Two', value: 'two ' },
{
type: 'submenu', text: 'Submenu', items: [
{ type: 'choiceitem', text: 'Three', value: 'three' }
]
}
];
callback(items);
}
});
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
ASKER
Open in new window