EditContext plain text editor

Click somewhere in the editor and type. Regular characters update the document directly. A dead key (e.g. ` or ´) or an IME starts a composition, which is underlined via a CSS custom highlight while it is in progress — the DOM stays a plain text node throughout.

Source code on GitHub.