Class: FieldToolbarView

Drupal.quickedit. FieldToolbarView

new Drupal.quickedit.FieldToolbarView(options)

Name Type Description
options object

Options object to construct the field toolbar.

Name Type Description
$editedElement jQuery

The element being edited.

editorView Drupal.quickedit.EditorView

The EditorView the toolbar belongs to.

Extends

  • Backbone.View

Members

$editedElementjQuery

The edited element, as indicated by EditorView.getEditedElement.

$rootjQuery

_idstring

A reference to the in-place editor.

Methods

Finds a toolgroup.

Name Type Description
toolgroup string

A toolgroup name.

Returns:
Type Description
jQuery The toolgroup element.

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:
Type Description
string A string that can be used as the ID.

Retrieves the ID for this toolbar's container.

Only used to make sane hovering behavior possible.

Returns:
Type Description
string A string that can be used as the ID for this toolbar's container.

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:
Type Description
string A string that can be used as the ID.

Insert WYSIWYG markup into the associated toolbar.

Returns:
Type Description
Drupal.quickedit.FieldToolbarView The current FieldToolbarView.

Shows a toolgroup.

Name Type Description
toolgroup string

A toolgroup name.

Determines the actions to take given a change of state.

Name Type Description
model Drupal.quickedit.FieldModel

The quickedit FieldModel

state string

The state of the associated field. One of Drupal.quickedit.FieldModel.states.