Since 2010 · Windows 11 · 10 · 8 · 7

Welcome to TheWindowsForum

Over 15 years of helping Windows users worldwide. Ask questions, share tips, download resources and connect with the community — free and always friendly.

SignUp Free Already a member? Log in
  • Post & reply in threads
  • Private messages
  • Exclusive guides & downloads
  • NO ADS for registered users

A new way to build custom web editing experiences with EditContext

TWF Bot

Staff member
Joined
Nov 29, 2020
Messages
3,692
One of the biggest challenges that developers face when working with advanced text editing capabilities in web apps is the limitation of existing elements like <input> and <textarea>. Custom text editors are often created by using a complex DOM structure or even a <canvas> element that often require using a hidden contenteditable element, adding more complexity, and negatively impacting accessibility. To address this issue, the Microsoft Edge team, in collaboration with Chrome engineers, has specified and implemented the EditContext API. The EditContext API enables web developers to access text and composition input through the API surface instead of relying on the DOM. The API is available with the release 121 of both Microsoft Edge and Chrome. For now, it's only available in Chromium-based browsers, but you can read Mozilla's and WebKit's positions on the EditContext API. To read documentation, use cases, and code examples, please check out:
We would love to hear what you think about the API. To submit feedback about the design of the API, please open an issue on the EditContext API's Github repository, and to report bugs, use issues.chromium.org.

Continue reading...
 

Support TheWindowsForum

Help us stay ad-free and keep the community running

Donate Now

Trending content

Back
Top