Constructor
new ButtonItem(text, action, stringopt)
Construct a button.
Parameters
-
text
string
the text shown on the button
-
action
function
the function to call when the button is clicked; it will be passed the Dialog instance
-
string
<optional>
name - the name of the button, internally (will default to the text parameter, but if you have multiple buttons with the same text, TinyMCE requires they all have different names internally)