What are all the possible settings attributes in TinyMCE's addButton() function?
autofocus
: True if the control should be focused when renderedborder
: Border box values example: 1 1 1 1classes
: Space separated list of classes to adddisabled
: Is the control disabled by defaulthidden
: Is the control hidden by defaulticon
: Icon to use for buttonimage
: Image to use for iconmargin
: Margin box values example: 1 1 1 1minHeight
: Minimal height for the controlminWidth
: Minimal width for the controlname
: Name of the control instancepadding
: Padding box values example: 1 1 1 1role
: WAI-ARIA role to use for controlsize
: Size of the button small|medium|largestyle
: Style CSS properties to addtext
: Text to display inside widgettooltip
: Tooltip text to display when hovering
For a full list of all the settings and methods see the TinyMCE documentation page
What you would like to know is what settings may fit into the settings object (tinymce 3).Here it is:
title --> titlelabel --> labelscope --> scopeonclick --> function to be called onclickmenu_button --> flag, defines if the button is a menu buttoncmd --> tinymce command to get executed onClickui --> paramter for the tinymce command cmdvalue --> value for the tinymce command cmd
Those settings get assigned in the function createButton
of the class ControlManager
.
Having had the same issue trying to find the addButton
docs in V4 I found the link, just in case anybody needs it.
Hope it helps someone!