Limited Availability
id: edit-context
EditContext
The
EditContext API allows you to build rich text editors that support advanced text input, such as Input Method Editor (IME) composition, an emoji picker, or other platform-specific editing UI.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
121
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
121
Supported
Mobile Browser Engine Support
Chrome Android
121
Firefox Android
—
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
api.CharacterBoundsUpdateEvent ↗
api.CharacterBoundsUpdateEvent.CharacterBoundsUpdateEvent ↗
api.CharacterBoundsUpdateEvent.rangeEnd ↗
api.CharacterBoundsUpdateEvent.rangeStart ↗
api.EditContext ↗
api.EditContext.EditContext ↗
api.EditContext.attachedElements ↗
api.EditContext.characterBounds ↗
api.EditContext.characterBoundsRangeStart ↗
api.EditContext.characterboundsupdate_event ↗
api.EditContext.compositionend_event ↗
api.EditContext.compositionstart_event ↗
api.EditContext.selectionEnd ↗
api.EditContext.selectionStart ↗
api.EditContext.text ↗
api.EditContext.textformatupdate_event ↗
api.EditContext.textupdate_event ↗
api.EditContext.updateCharacterBounds ↗
api.EditContext.updateControlBounds ↗
api.EditContext.updateSelection ↗
api.EditContext.updateSelectionBounds ↗
api.EditContext.updateText ↗
api.HTMLElement.editContext ↗
api.TextFormat ↗
api.TextFormat.TextFormat ↗
api.TextFormat.rangeEnd ↗
api.TextFormat.rangeStart ↗
api.TextFormat.underlineStyle ↗
api.TextFormat.underlineThickness ↗
api.TextFormatUpdateEvent ↗
api.TextFormatUpdateEvent.TextFormatUpdateEvent ↗
api.TextFormatUpdateEvent.getTextFormats ↗
api.TextUpdateEvent ↗
api.TextUpdateEvent.TextUpdateEvent ↗
api.TextUpdateEvent.selectionEnd ↗
api.TextUpdateEvent.selectionStart ↗
api.TextUpdateEvent.text ↗
api.TextUpdateEvent.updateRangeEnd ↗
api.TextUpdateEvent.updateRangeStart ↗