TextFormatUpdateEvent: TextFormatUpdateEvent() constructor
TextFormatUpdateEvent API
TextFormatUpdateEvent API
The **`TextFormatUpdateEvent()`** constructor returns a new TextFormatUpdateEvent object.
## Syntax
```js-nolint
new TextFormatUpdateEvent(type)
new TextFormatUpdateEvent(type, options)
```
### Parameters
- `type`
- : A string representing the type of the event. Possible values: `"textformatupdate"`.
- `options`
- : 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
## Browser compatibility
## See also
- The TextFormatUpdateEvent interface it belongs to.
source: MDN Web Docs mirror · page
Cite this
"TextFormatUpdateEvent: TextFormatUpdateEvent() constructor". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/TextFormatUpdateEvent/TextFormatUpdateEvent JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy