Class: FieldToolbarView

Drupal.quickedit.FieldToolbarView(options)

new FieldToolbarView(options)

Parameters:
Name Type Description
options object

Options object to construct the field toolbar.

Properties
Name Type Description
$editedElement jQuery

The element being edited.

editorView Drupal.quickedit.EditorView

The EditorView the toolbar belongs to.

Source:

Extends

  • Backbone.View

Members

$editedElement :jQuery

The edited element, as indicated by EditorView.getEditedElement.

Type:
Source:

$root :jQuery

Type:
Source:

_id :string

Type:
  • string
Source:

editorView :Drupal.quickedit.EditorView

A reference to the in-place editor.

Type:
Source:

Methods

_find(toolgroup) → {jQuery}

Finds a toolgroup.

Parameters:
Name Type Description
toolgroup string

A toolgroup name.

Source:
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.

Source:
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.

Source:
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.

Source:
Returns:

A string that can be used as the ID.

Type
string

insertWYSIWYGToolGroups()

Insert WYSIWYG markup into the associated toolbar.

Source:

render() → {Drupal.quickedit.FieldToolbarView}

{@inheritdoc}

Source:
Returns:

The current FieldToolbarView.

Type
Drupal.quickedit.FieldToolbarView

show(toolgroup)

Shows a toolgroup.

Parameters:
Name Type Description
toolgroup string

A toolgroup name.

Source:

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 Drupal.quickedit.FieldModel.states.

Source: