Markus Over
Developing the Rich Text Editor for DeepL.com
#1about 3 minutes
Why DeepL needed a custom rich text editor
Standard HTML textareas are insufficient for advanced features like word suggestions, rich text formatting, and visual diffs for the writing assistant.
#2about 4 minutes
The decision to build the DTextArea component
DeepL chose to build its own component to meet specific requirements like full customizability, a separate visual layer, and synchronized text areas.
#3about 1 minute
Using a virtual DOM for text representation
The editor uses a custom, minimal tree structure inspired by the DOM to represent text content and a separate visual layer for highlights.
#4about 6 minutes
The surprising complexity of handling line breaks
Line breaks are often implied by the HTML structure rather than explicit, requiring the editor to perfectly mimic inconsistent browser behavior.
#5about 6 minutes
Managing cursor position in a volatile DOM
To prevent the cursor from jumping during DOM cleanup, its position is converted from a node-offset pair to a stable character offset and back.
#6about 2 minutes
Supporting the Input Method Editor for non-latin languages
The Input Method Editor (IME) for languages like Japanese can break if the DOM is modified, requiring the editor to pause manipulations during composition.
#7about 4 minutes
Navigating browser bugs and external content issues
Challenges include browsers generating invalid HTML, inconsistent event orders, interference from browser plugins, and sanitizing complex clipboard content from apps like Microsoft Word.
#8about 2 minutes
Key learnings from building a rich text editor
The project revealed the deceptive nature of the 80/20 rule, as the final 20% of features required 80% of the effort.
#9about 2 minutes
Q&A on testing strategies and alternative editors
The team uses a full testing stack including unit, end-to-end, and property-based tests to find edge cases in the editor's behavior.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Matching moments
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
05:28 MIN
The origin story of the Polypane developer browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
06:09 MIN
Creating a modal with the native HTML dialog element
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:58 MIN
Making accessibility tooling actionable and encouraging
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
Featured Partners
Related Videos
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Chris Heilmann, Daniel Cranney & Jan Deppisch
WAD Live 22/01/2025: Exploring AI, Web Development, and Accessibility in Tech with Stefan Judis
The Collaborative Edge for AI Assistants in Content Creation Workflows
Catching up on the basics you don't really need that much code
Chris Heilmann
TDD for Vue.js Developers
Markus Oberlehner
Extending HTML with Web Components
Rowdy Rabouw
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
Chris Heilmann, Daniel Cranney & Theodore Lefevre
Dev Digest End of Year Recap
Daniel Cranney & Chris Heilmann
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript

Twin.Link GmbH
Osnabrück, Germany
Intermediate
Senior
React
TypeScript

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

DeepL
Amsterdam, Netherlands
Remote
.NET
React
Kafka
Node.js
+3

DeepL
London
Contract
Published: 9 hours ago
Competitive
Charing Cross, United Kingdom
Remote
Redis
Python
Grafana
FastAPI
+6



DeepL GmbH
Berlin, Germany
Remote
Senior
Python
Kubernetes
Data analysis
Amazon Web Services (AWS)