new FieldToolbarView(options)
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Options object to construct the field toolbar. Properties
|
Extends
- Backbone.View
Members
$editedElement :jQuery
The edited element, as indicated by EditorView.getEditedElement.
Type:
$root :jQuery
Type:
_id :string
Type:
- string
editorView :Drupal.quickedit.EditorView
A reference to the in-place editor.
Type:
Methods
_find(toolgroup) → {jQuery}
Finds a toolgroup.
Parameters:
Name | Type | Description |
---|---|---|
toolgroup |
string | A toolgroup name. |
Returns:
The toolgroup element.
- Type
- jQuery
getFloatedWysiwygToolgroupId() → {string}
Retrieves the ID for this toolbar's floating WYSIWYG toolgroup.
Used to provide an abstraction for any WYSIWYG editor to plug in.
Returns:
A string that can be used as the ID.
- Type
- string
getId() → {string}
Retrieves the ID for this toolbar's container.
Only used to make sane hovering behavior possible.
Returns:
A string that can be used as the ID for this toolbar's container.
- Type
- string
getMainWysiwygToolgroupId() → {string}
Retrieves the ID for this toolbar's main WYSIWYG toolgroup.
Used to provide an abstraction for any WYSIWYG editor to plug in.
Returns:
A string that can be used as the ID.
- Type
- string
insertWYSIWYGToolGroups()
Insert WYSIWYG markup into the associated toolbar.
render() → {Drupal.quickedit.FieldToolbarView}
{@inheritdoc}
Returns:
The current FieldToolbarView.
show(toolgroup)
Shows a toolgroup.
Parameters:
Name | Type | Description |
---|---|---|
toolgroup |
string | A toolgroup name. |
stateChange(model, state)
Determines the actions to take given a change of state.
Parameters:
Name | Type | Description |
---|---|---|
model |
Drupal.quickedit.FieldModel | The quickedit FieldModel |
state |
string | The state of the associated field. One of
|