Namespace: inlineEditPost

inlineEditPost

Manages the quick edit and bulk edit windows for editing posts or pages.
Properties:
Name Type Description
type string The type of inline editor.
what string The prefix before the post id.
Since:
  • 2.7.0
Source:

Methods


<static> edit(id)

Creates a quick edit window for the post that has been clicked.
Parameters:
Name Type Description
id number | Object The id of the clicked post or an element within a post table row.
Since:
  • 2.7.0
Source:
Returns:
Always returns false at the end of execution.
Type
boolean

<static> getId(o)

Gets the id for a the post that you want to quick edit from the row in the quick edit table.
Parameters:
Name Type Description
o Object DOM row object to get the id for.
Since:
  • 2.7.0
Source:
Returns:
The post id extracted from the table row in the object.
Type
string

<static> init()

Initializes the inline and bulk post editor. Binds event handlers to the Escape key to close the inline editor and to the save and close buttons. Changes DOM to be ready for inline editing. Adds event handler to bulk edit.
Since:
  • 2.7.0
Source:
Returns:
Type
void

<static> revert()

Hides and empties the Quick Edit and/or Bulk Edit windows.
Since:
  • 2.7.0
Source:
Returns:
Always returns false.
Type
boolean

<static> setBulk()

Creates the bulk editor row to edit multiple posts at once.
Since:
  • 2.7.0
Source:

<static> toggle(el)

Toggles the quick edit window, hiding it when it's active and showing it when inactive.
Parameters:
Name Type Description
el Object Element within a post table row.
Since:
  • 2.7.0
Source: