TextFormatUpdateEvent: TextFormatUpdateEvent() コンストラクター
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
TextFormatUpdateEvent() コンストラクターは、新しい TextFormatUpdateEvent オブジェクトを返します。
構文
js
new TextFormatUpdateEvent(type)
new TextFormatUpdateEvent(type, options)
引数
type-
イベントの種類を表す文字列です。とりうる値は
"textformatupdate"です。 options省略可-
省略可能なオブジェクトで、以下のプロパティを持ちます。
textFormats-
このイベントで適用する必要があるテキストの書式を表す
TextFormatオブジェクトのArrayです。
仕様書
| Specification |
|---|
| EditContext API> # dom-textformatupdateevent-constructor> |
ブラウザーの互換性
関連情報
- 属する
TextFormatUpdateEventインターフェイス