goog.ui.editor.DefaultToolbar
Functions
addDefaultFontSizes( button ) → void
void
Initializes the given font size menu button by adding default font sizes to it.
Parameters |
|
---|
addDefaultFonts( button ) → void
void
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.
Parameters |
|
---|
addDefaultFormatOptions( button ) → void
void
Initializes the given "Format block" menu button by adding default format options to the menu.
Parameters |
|
---|
makeBuiltInToolbarButton( command, opt_domHelper ) → (goog.ui.Button|null)
(goog.ui.Button|null)
Creates an instance of a subclass of goog.ui.Button
for the given
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!
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
makeDefaultToolbar( elem, opt_isRightToLeft ) → goog.ui.Toolbar
goog.ui.Toolbar
Creates a goog.ui.Toolbar
containing a default set of editor
toolbar buttons, and renders it into the given parent element.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
| ||||||||
See Also |
makeToolbar( items, elem, opt_isRightToLeft ) → goog.ui.Toolbar
goog.ui.Toolbar
Creates a goog.ui.Toolbar
containing the specified set of
toolbar buttons, and renders it into the given parent element. Each
item in the items
array must either be a
goog.editor.Command
(to create a built-in button) or a subclass
of goog.ui.Control
(to create a custom control).
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
setLocale( locale ) → void
void
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.
Parameters |
|
---|
Properties
A set of built-in buttons to display in the default editor toolbar.
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 → string
string
No information.
MSG_ALIGN_LEFT_TITLE → string
string
No information.
MSG_ALIGN_RIGHT_TITLE → string
string
No information.
MSG_BACKGROUND_COLOR_TITLE → string
string
No information.
MSG_BLOCKQUOTE_TITLE → string
string
No information.
MSG_BOLD_TITLE → string
string
No information.
MSG_DIR_LTR_TITLE → string
string
No information.
MSG_DIR_RTL_TITLE → string
string
No information.
MSG_EDIT_HTML_CAPTION → string
string
No information.
MSG_EDIT_HTML_TITLE → string
string
No information.
MSG_FONT_COLOR_TITLE → string
string
No information.
MSG_FONT_FACE_TITLE → string
string
No information.
MSG_FONT_NORMAL → string
string
No information.
MSG_FONT_NORMAL_SERIF → string
string
No information.
MSG_FONT_SIZE_HUGE → string
string
No information.
MSG_FONT_SIZE_LARGE → string
string
No information.
MSG_FONT_SIZE_NORMAL → string
string
No information.
MSG_FONT_SIZE_SMALL → string
string
No information.
MSG_FONT_SIZE_TITLE → string
string
No information.
MSG_FORMAT_BLOCK_CAPTION → string
string
No information.
MSG_FORMAT_BLOCK_TITLE → string
string
No information.
MSG_FORMAT_HEADING → string
string
No information.
MSG_FORMAT_MINOR_HEADING → string
string
No information.
MSG_FORMAT_NORMAL → string
string
No information.
MSG_FORMAT_SUBHEADING → string
string
No information.
MSG_IMAGE_TITLE → string
string
No information.
MSG_INDENT_TITLE → string
string
No information.
MSG_ITALIC_TITLE → string
string
No information.
MSG_JUSTIFY_TITLE → string
string
No information.
MSG_LINK_TITLE → string
string
No information.
MSG_ORDERED_LIST_TITLE → string
string
No information.
MSG_OUTDENT_TITLE → string
string
No information.
MSG_REDO_TITLE → string
string
No information.
MSG_REMOVE_FORMAT_TITLE → string
string
No information.
MSG_STRIKE_THROUGH_TITLE → string
string
No information.
MSG_SUBSCRIPT → string
string
No information.
MSG_SUPERSCRIPT → string
string
No information.
MSG_UNDERLINE_TITLE → string
string
No information.
MSG_UNDO_TITLE → string
string
No information.
MSG_UNORDERED_LIST_TITLE → string
string
No information.