David Bushell tries three ways to build one in the browser and shows what each approach gives away. Canvas offers full control but no text selection, undo history, or multi-line paste. Contenteditable with plaintext-only brings back native editing and accessibility, though performance drops past a certain number of characters. A plain <textarea> turns out fastest, with syntax highlighting layered on top.
Fine, I’ll build my own text editor!
