
TypeScript Beyond Basics
} -->
Building a rich text editor from scratch is a challenge many frontend developers shy away from - and I decided to take it on with my project Draftly.
Draftly is a lightweight, custom rich text editor built in JavaScript that lets you format text, create lists, and style content without relying on heavy external libraries.
Here’s a simplified example of how Draftly toggles bold formatting:
function toggleBold() {
document.execCommand('bold');
}
Of course, Draftly extends far beyond this simple command - but starting small helped me build up functionality incrementally.
Draftly is still a work in progress. My description here is just a sketch of what the project is and what I plan to include in it.
I plan to:
If you’re thinking about building your own editor or just curious how these tools work under the hood, I highly recommend trying a project like Draftly. It’s both humbling and rewarding.
Check out the repo here: Draftly on GitHub
Bartłomiej Nowak
Programmer
Programmer focused on performance, simplicity, and good architecture. I enjoy working with modern JavaScript, TypeScript, and backend logic — building tools that scale and make sense.