Preparing this workspace.
Problem editorial
We're currently writing the detailed solution for this problem. Check back soon.
Solve ProblemDesign a Text Editor is a Design Patterns problem, in the Design (General/Specific) subpattern. Once the approach above makes sense, write it yourself and then work through the neighbouring problems that reuse it.