EditContext API was inspired by discussions in Editing TF. It allows web applications a deeper integration with operating systems’ input services. The proposed design allows for clean separation of document object model and data model and a number of other benefits that are not available to a web developer today.
Some of the gaps that the proposal aims to fill in the web platform:
- Very hard to build interoperable text editor on the web using browser primitives, i.e. contenteditable or textarea;
- Contenteditable: document object and data models are coupled together;
- Selection problems when hidden text area approach is used which may result in software keyboard or a IME candidate window to be wrongly positioned;
- IME related issues, specifically, long running IME composition on collaboration scenarios;
It provides: Native like(how it is done in the browser today) set of Javascript APIs to control text entry through interaction with system’s text input services.
It is great for: Javascript editing frameworks.
You can find additional information in the explainer.