TextFormatUpdateEvent API
The TextFormatUpdateEvent() constructor returns a new TextFormatUpdateEvent object.
Syntax
new TextFormatUpdateEvent(type)
new TextFormatUpdateEvent(type, options)
Parameters
type- : A string representing the type of the event. Possible values:
"textformatupdate".
- : A string representing the type of the event. Possible values:
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.
- : An optional object with the following properties:
Specifications
Browser compatibility
See also
- The TextFormatUpdateEvent interface it belongs to.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
