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"
. options
Optional-
An optional object with the following properties:
textFormats
-
An
Array
ofTextFormat
objects representing the text formats that need to be applied with this event.
Specifications
Specification |
---|
EditContext API # dom-textformatupdateevent-constructor |
Browser compatibility
BCD tables only load in the browser
See also
- The
TextFormatUpdateEvent
interface it belongs to.