DEV Community

Cover image for Stop Rebuilding Editors: One Rich Text Editor for Every Framework
Ahmed Niazy
Ahmed Niazy

Posted on

Stop Rebuilding Editors: One Rich Text Editor for Every Framework

๐ŸŒ Introducing editor-elsolya โ€” A Universal Rich Text Editor for the Modern Web

After working across multiple frontend stacks, one problem kept coming back again and again:

Why do we still need a different editor for every framework?

Today, Iโ€™m excited to introduce editor-elsolya โ€” a framework-agnostic Rich Text Editor, built as a Web Component, designed to run everywhere the web runs.

๐Ÿš€ One Editor. Every Framework.

Install once:

npm i editor-elsolya

Use anywhere:

No wrappers. No framework lock-in. No compromises.

๐Ÿง  Why Web Components?

editor-elsolya is built as a native Web Component, which means:

โœ… Works with React, Vue, Angular, Nuxt, Next, Svelte, Solid, Astro, and Vanilla JS

โœ… Uses standard HTML & DOM APIs

โœ… Zero dependency on framework internals

โœ… Safe for SSR environments (Next.js / Nuxt)

โœ… Future-proof by web standards, not libraries

โœจ Core Features

๐Ÿ“ Rich Text Editing powered by contenteditable

๐Ÿงฉ Native Custom Element:

๐Ÿ” Two-way data flow

Get / set content via value

Listen to changes via native CustomEvent

โšก Instant integration โ€” no config required

๐Ÿ”’ Framework-independent architecture

๐Ÿง  Optional Adapters

React adapter (editor-elsolya/react)

Vue adapter with v-model support (editor-elsolya/vue)

๐Ÿ–ฅ SSR-friendly

Runs only in the browser

Safe imports on the server

๐ŸŽฏ TypeScript-ready

๐Ÿชถ Lightweight & performant

๐Ÿ”Œ API Overview

value: string โ†’ get / set editor HTML

disabled: boolean โ†’ enable / disable editing

Event: change

e.detail.html

Pure DOM. No framework magic.

๐Ÿ— Built for Real-World Teams

This editor is ideal for:

Teams maintaining multiple frontend stacks

Design systems & shared UI libraries

Micro-frontend architectures

SaaS platforms with evolving tech stacks

Anyone tired of rewriting editors for every framework

๐Ÿ›  Architecture Highlights

Built on native Web Platform APIs

No heavy editor engines

No hidden global state

Easy to extend (toolbar, themes, plugins)

Designed for long-term maintainability

๐Ÿ”ฎ Roadmap

Coming next:

๐ŸŽจ Theme & CSS variables

๐Ÿ–ผ Image upload support

๐Ÿ”Œ Plugin system

โš™๏ธ Configurable toolbar

๐Ÿ“ฆ Smaller bundle & tree-shaking

๐Ÿค Open Source

This project is open for feedback, ideas, and contributions.

If you care about clean architecture, web standards, and developer experience, Iโ€™d love to hear your thoughts.

๐Ÿ”— Get started

npm i editor-elsolya

One editor.

Every framework.

Built on web standards.

https://www.npmjs.com/package/editor-elsolya
ู„ูˆ ุงู„ู…ู‚ุงู„ู‡ ุนุฌุจุชูƒ ู…ู…ูƒู† ุชุฏุนู…ู†ูŠ ู‡ู†ุง
https://www.linkedin.com/posts/ahmed-niazy-maher-gad-elsolya-506507394_webcomponents-javascript-typescript-activity-7420592395328614400-RTzA?utm_source=share&utm_medium=member_desktop&rcm=ACoAAGDlLhYBuSmwE3MG1I6cEGDf7QWvWr7KXcw

WebComponents #JavaScript #TypeScript #FrontendDevelopment

Frontend #WebDev #NPM #OpenSource

React #Vue #Angular #Nuxt #NextJS #Svelte #Astro

MicroFrontends #DesignSystems #SSR

DeveloperExperience #SoftwareEngineering

ContentEditable #UIComponents #BuildInPublic

Top comments (2)

Collapse
ย 
dannyengelman profile image
Danny Engelman โ€ข

If its so easy, put a live demo online, or on CodePen or JSFiddle or the like.
JSFidlle can easily be displayed here in your blog

Some comments may only be visible to logged-in visitors. Sign in to view all comments.