Class: plain_text

Drupal.quickedit.editors.plain_text(options)

new plain_text(options)

Parameters:
Name Type Description
options object

Options for the plain text editor.

Source:

Extends

Members

$textElement

Stores the textual DOM element that is being in-place edited.

Source:

Methods

getEditedElement() → {jQuery}

{@inheritdoc}

Overrides:
Source:
Returns:

The text element for the plain text editor.

Type
jQuery

getQuickEditUISettings() → {object}

{@inheritdoc}

Overrides:
Source:
Returns:

A settings object for the quick edit UI.

Type
object

remove()

{@inheritdoc}

Inherited From:
Source:

removeValidationErrors()

Cleans up validation error messages.

Should be called when the state is changed to 'candidate' or 'saving'. In the case of the latter: the user has modified the value in the in-place editor again to attempt to save again. In the case of the latter: the invalid value was discarded.

Inherited From:
Source:

revert()

{@inheritdoc}

Overrides:
Source:

save()

Saves the modified value in the in-place editor for this field.

Inherited From:
Source:

showValidationErrors()

Shows validation error messages.

Should be called when the state is changed to 'invalid'.

Inherited From:
Source:

stateChange(fieldModel, state, options)

{@inheritdoc}

Parameters:
Name Type Description
fieldModel object

The field model that holds the state.

state string

The state to change to.

options object

State options, if needed by the state change.

Overrides:
Source: