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;
You can find additional information in the explainer.