Constructor
new ButtonItem(text, action, stringopt)
Construct a button.
Parameters
-
text
stringthe text shown on the button
-
action
functionthe 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)
Source
Classes
Methods
getElement() → {HTMLElement}
Find the element in the DOM representing this button. This works only if the dialog containing the button has been shown on screen, not before.
Returns
-
HTMLElementthe DOM element with tag "BUTTON"