goog.ui.editor.DefaultToolbar
Namespace.DEFAULT_BUTTONS
{!Array
.<string
>}A set of built-in buttons to display in the default editor toolbar.
.DEFAULT_BUTTONS_RTL
{!Array
.<string
>}A set of built-in buttons to display in the default editor toolbar when the editor chrome is right-to-left (BiDi mode only).
.MSG_ALIGN_CENTER_TITLE
.MSG_ALIGN_LEFT_TITLE
.MSG_ALIGN_RIGHT_TITLE
.MSG_BACKGROUND_COLOR_TITLE
.MSG_BLOCKQUOTE_TITLE
.MSG_BOLD_TITLE
.MSG_DIR_LTR_TITLE
.MSG_DIR_RTL_TITLE
.MSG_EDIT_HTML_CAPTION
.MSG_EDIT_HTML_TITLE
.MSG_FONT_COLOR_TITLE
.MSG_FONT_FACE_TITLE
.MSG_FONT_NORMAL
.MSG_FONT_NORMAL_SERIF
.MSG_FONT_SIZE_HUGE
.MSG_FONT_SIZE_LARGE
.MSG_FONT_SIZE_NORMAL
.MSG_FONT_SIZE_SMALL
.MSG_FONT_SIZE_TITLE
.MSG_FORMAT_BLOCK_CAPTION
.MSG_FORMAT_BLOCK_TITLE
.MSG_FORMAT_HEADING
.MSG_FORMAT_MINOR_HEADING
.MSG_FORMAT_NORMAL
.MSG_FORMAT_SUBHEADING
.MSG_IMAGE_TITLE
.MSG_INDENT_TITLE
.MSG_ITALIC_TITLE
.MSG_JUSTIFY_TITLE
.MSG_LINK_TITLE
.MSG_ORDERED_LIST_TITLE
.MSG_OUTDENT_TITLE
.MSG_REDO_TITLE
.MSG_REMOVE_FORMAT_TITLE
.MSG_STRIKE_THROUGH_TITLE
.MSG_SUBSCRIPT
.MSG_SUPERSCRIPT
.MSG_UNDERLINE_TITLE
.MSG_UNDO_TITLE
.MSG_UNORDERED_LIST_TITLE
.addDefaultFontSizes(button)
Initializes the given font size menu button by adding default font sizes to it.
button
{!goog.ui.Select
}
.addDefaultFonts(button)
Initializes the given font menu button by adding default fonts to the menu. If goog.ui.editor.DefaultToolbar.setLocale was called to specify a locale for which locale-specific default fonts exist, those are added before common fonts.
button
{!goog.ui.Select
}
.addDefaultFormatOptions(button)
Initializes the given "Format block" menu button by adding default format options to the menu.
button
{!goog.ui.Select
}
.makeBuiltInToolbarButton(command, opt_domHelper)
Creates an instance of a subclass of {@link goog.ui.Button} for the given {@link goog.editor.Command}, or null if no built-in button exists for the command. Note that this function is only intended to create built-in buttons; please don't try to hack it!
command
{string
}
opt_domHelper
{goog.dom.DomHelper
=}
goog.ui.Button
}
.makeDefaultToolbar(elem, opt_isRightToLeft)
Creates a {@link goog.ui.Toolbar} containing a default set of editor toolbar buttons, and renders it into the given parent element.
elem
{!Element
}
opt_isRightToLeft
{boolean
=}
goog.ui.Toolbar
}
.makeToolbar(items, elem, opt_isRightToLeft)
Creates a {@link goog.ui.Toolbar} containing the specified set of toolbar buttons, and renders it into the given parent element. Each item in the {@code items} array must either be a {@link goog.editor.Command} (to create a built-in button) or a subclass of {@link goog.ui.Control} (to create a custom control).
items
{!Array
.<string
|goog.ui.Control
>}
elem
{!Element
}
opt_isRightToLeft
{boolean
=}
goog.ui.Toolbar
}
.setLocale(locale)
Sets the locale for the font names. If not set, defaults to 'en-us'. Used only for default creation of font names name. Must be set before font name menu is created.
locale
{string
}