TextFormatUpdateEvent: TextFormatUpdateEvent() constructor

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The TextFormatUpdateEvent() constructor returns a new TextFormatUpdateEvent object.

Syntax

js
new TextFormatUpdateEvent(type)
new TextFormatUpdateEvent(type, options)

Parameters

type

A string representing the type of the event. Possible values: "textformatupdate".

options Optional

An optional object with the following properties:

textFormats

An Array of TextFormat objects representing the text formats that need to be applied with this event.

Specifications

See also