TextFormatUpdateEvent: TextFormatUpdateEvent() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
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". optionsOptional-
An optional object with the following properties:
textFormats-
An
ArrayofTextFormatobjects representing the text formats that need to be applied with this event.
Specifications
| Specification |
|---|
| EditContext API> # dom-textformatupdateevent-constructor> |
Browser compatibility
See also
- The
TextFormatUpdateEventinterface it belongs to.