Expand all

ve.ui.FormatAction

Extends

Constructor

new ve.ui.FormatAction(surface, [source]) #

Format action.

Parameters:

Name Type Attributes Description
surface ve.ui.Surface

Surface to act on

source string optional
Source:
Format action.

Methods

convert(type, attributes) → {boolean} #

Convert the format of content.

Conversion splits and unwraps all lists and replaces content branch nodes.

TODO: Refactor functionality into {ve.dm.SurfaceFragment}.

Parameters:

Name Type Description
type string
attributes Object
Source:

Returns:

Action was executed

Type
boolean
Convert the format of content.