EditContext API demo

The EditContext API makes it possible for web authors to produce more sophisticated editing experiences than what other editable regions on the web allow, without having to resort to complicated solutions that may negatively impact accessibility.

For more information, see the EditContext API specification. MDN documentation coming soon.

Editable CANVAS

Focus the CANVAS element below and start typing. Typing should also work just like in any editable region, with support for IME.
The element also uses the EditContext API to support text edition, and renders the text by using canvas drawing primitives.