Skip to content

EditContext API #220

@svoisen

Description

@svoisen

Description

The EditContext is a new API that simplifies the process of integrating a web app with advanced text input methods, improves accessibility and performance, and unlocks new capabilities for web-based editors.

This API allows web developers to create sophisticated input methods such as an improved IME experience by decoupling text input from the HTML DOM view. Rather than having the web platform infer the data required to enable sophisticated text input mechanisms from the HTML DOM, the author can provide that data explicitly through the API surface of the EditContext.

It is currently only supported in Chromium-based browsers.

Rationale

Any developer wishing to build rich application such as drawing tools, web-based code editors, web-based word processors and the like which require IME support, improved accessibility, or custom emoji pickers will benefit from this API.

At Adobe, we are already using it in our web-based creative tools (where it is available) to provide much improved IME UX for Chinese, Japanese, and Korean users. This allows us to meet these customers' text input needs in applications where we perform our own text rendering on HTML canvas.

Specification

https://w3c.github.io/editing/docs/EditContext/

Tests

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions