GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

5 results across 6 corpora for TextFormatUpdateEvent.

Developer library 5

TextFormatUpdateEvent

EditContext API The **`TextFormatUpdateEvent`** interface is a [DOM event](/docs/Web/API/Event) that represents a list of text formats that an Input Method Editor (IME) window wants to apply to the text being composed in an editable region that's attached to an EditContext instance. This interface inherits properties from Event. ## Constructor - TextFormatUpdateEvent() - : Creates a new `TextFormatUpdateEven

TextFormatUpdateEvent: TextFormatUpdateEvent() constructor

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: - `textForma

TextFormatUpdateEvent: getTextFormats() method

EditContext API The **`getTextFormats()`** method of the TextFormatUpdateEvent interface returns an Array of TextFormat objects that represent the formats that an Input Method Editor (IME) window wants to apply to the text being composed. ## Syntax ```js-nolint getTextFormats() ``` ### Parameters None. ### Return value An Array containing TextFormat objects. ## Examples ### Styling IME-composed text In the

EditContext: textformatupdate event

(/docs/Web/API/Document_Object_Model/Events#using_onevent_properties) of the interface: ```js-nolint ontextformatupdate = (event) => { } ``` ## Event type A TextFormatUpdateEvent. Inherits from Event. ## Examples ### Rendering IME composition text formatting In the following example, the `textformatupdate` event is used to update the formatting of the text in the editable region. Note that the event listener ca

EditContext API

rface is a [DOM event](/docs/Web/API/Event) that represents a text or selection update in an editable text region that's attached to an EditContext instance. - TextFormatUpdateEvent - : The `TextFormatUpdateEvent` interface is a [DOM event](/docs/Web/API/Event) that represents a list of text formats that an Input Method Editor (IME) window wants to apply to the text being composed in an editable region that's atta

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/EditContext_API

JSON results · Services directory