CharacterBoundsUpdateEvent API
The CharacterBoundsUpdateEvent() constructor returns a new CharacterBoundsUpdateEvent object.
Syntax
new CharacterBoundsUpdateEvent(type)
new CharacterBoundsUpdateEvent(type, options)
Parameters
type- : A string representing the type of the event. Possible values:
"characterboundsupdate".
- : A string representing the type of the event. Possible values:
options- : An optional object with the following properties:
rangeStart- : A number to set the offset of the first character within the editable text region which this event applies to.
rangeEnd- : A number to set the offset of the last character within the editable text region which this event applies to.
- : An optional object with the following properties:
Specifications
Browser compatibility
See also
- The CharacterBoundsUpdateEvent interface it belongs to.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
