← 返回首页
TextFormatUpdateEvent: TextFormatUpdateEvent() コンストラクター - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

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 オブジェクトを返します。

In this article

構文

js
new TextFormatUpdateEvent(type) new TextFormatUpdateEvent(type, options)

引数

type

イベントの種類を表す文字列です。とりうる値は "textformatupdate" です。

options 省略可

省略可能なオブジェクトで、以下のプロパティを持ちます。

textFormats

このイベントで適用する必要があるテキストの書式を表す TextFormat オブジェクトの Array です。

仕様書

Specification
EditContext API
# dom-textformatupdateevent-constructor

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報