doc/api/toolbar.md
src/node/utils/toolbar.js
opts
command - this command fill be fired on the editbar on clicklocalizationId - will be set as data-l10-idclass - here you can add additional classes to the buttonReturns: {Button}
Example:
var orderedlist = toolbar.button({
command: "insertorderedlist",
localizationId: "pad.toolbar.ol.title",
class: "buttonicon buttonicon-insertorderedlist"
})
You can also create buttons with text:
var myButton = toolbar.button({
command: "myButton",
localizationId: "myPlugin.toolbar.myButton",
class: "buttontext"
})
opts
id - id of the menu itemselectId - id of the select elementcommand - this command fill be fired on the editbar on changeReturns: {SelectButton}
data-l10n-id)