Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for TextFormatUpdateEvent: getTextFormats() method.
Developer library 3
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: 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