Skip to content
Aditya Bhalsod

Journal / Topic

Open Source articles

Notes from building and maintaining public projects.

Articles
8
Topics
1
Language
EN

/blog/topics/open-source

All Open Source articles

Browse every topic

Featured

Open Source5 minNewAdvanced

Handling Contenteditable Input Without Trusting the DOM

How Trevixal, my from-scratch rich-text editor, turns beforeinput events, IME composition and stray DOM mutations into transactions on a document model it owns.

Key takeaway. Outside IME composition, cancel every beforeinput event and replay the intents you understand as commands on your own model.

  • #typescript
  • #contenteditable
  • #rich-text-editor
Read article