Expand all

ve.ui.MWEditSummaryWidget

Extends

Constructor

new ve.ui.MWEditSummaryWidget([config]) #

Multi line text input for edit summary, with auto completion based on the user's previous edit summaries.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Default Description
limit number optional
6

Number of suggestions to show

Mixes in:
Source:

Multi line text input for edit summary, with auto completion based on the user's previous edit summaries.

Methods

getLookupCacheDataFromResponse() #

getLookupMenuOptionsFromData() #

getSummaries() → {jQuery.Promise} #

Get recent edit summaries for the logged in user

Source:

Returns:

Promise which resolves with a list of summaries

Type
jQuery.Promise
Get recent edit summaries for the logged in user

getMatchingSummaries(summaries, query) → {Array.<string>}static #

Filter a list of edit summaries to a specific query string

Parameters:

Name Type Description
summaries Array.<string>

Edit summaries

query string

User query

Source:

Returns:

Filtered edit summaries

Type
Array.<string>
Filter a list of edit summaries to a specific query string

splitSummary(summary) → {Object}static #

Split a summary into the section and the actual summary

Parameters:

Name Type Description
summary string
Source:

Returns:

Object with section and comment string properties

Type
Object
Split a summary into the section and the actual summary