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
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
TextFormatUpdateEvent() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
See also
- The
TextFormatUpdateEventinterface it belongs to.