@erag/text-editor-vue
| Install | |
|---|---|
npm install @erag/text-editor-vue |
|
| Latest Version: | 1.3.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 7, 2026 |
| Links: | GitHub · npm |
@erag/text-editor-vue
A dependency-free Vue 3 rich text editor built with native browser APIs, flexible configuration, and full TypeScript support. It provides a responsive editing experience for applications that need rich formatting, structured content, dynamic data, media handling, and accessible controls without relying on an external editor framework.
Key features
- 🪶 Dependency-free runtime — Vue is the only peer dependency.
- ✍️ Rich text formatting — paragraphs, headings, fonts, font sizes, line height, colors, alignment, indentation, blockquotes, inline code, superscript, and subscript.
- 📋 Lists and structured content — bulleted lists, numbered lists, nested lists, configurable list styles, and keyboard-friendly indentation.
- ↩️ Editing history — undo, redo, selection-aware formatting, clear formatting, cut, copy, paste, and plain-text paste.
- 🧭 Responsive interface — configurable menubar, adaptive toolbar overflow, nested menus, floating popovers, dialogs, and status bar.
- 🔗 Links and anchors — insert, edit, validate, unlink, target selection, safe URL handling, and anchor insertion.
- 🖼️ Image workflow — file selection, drag-and-drop, pasted images, custom uploads, URL uploads, progress, validation, resizing, alignment, and server-removal callbacks.
- 🎬 Media support — video, audio, sanitized iframe embeds, poster images, width, and height controls.
- 📊 Table editing — grid insertion, row and column controls, merge and split cells, headers, cell properties, alignment, borders, colors, and keyboard navigation.
- 👥 Mentions — static or asynchronous
@mentionsuggestions, avatars, descriptions, keyboard navigation, insertion, removal events, and custom slots. - 🧩 Merge tags — grouped dynamic tags, caret suggestions, sidebar browsing, keyboard navigation, selection events, and consumer-provided values.
- 📄 Reusable templates — grouped templates supplied through configuration and inserted at the current editor selection.
- 😊 Content tools — emojis, searchable special characters, horizontal rules, anchors, and configurable date and time formats.
- 🔍 Document tools — find and replace, word and character counts, source-code editing, preview, fullscreen, visual aids, show blocks, and editor-only printing.
- ⚙️ Flexible configuration — reactive options for toolbars, menus, plugins, formats, colors, dimensions, uploads, content styles, sanitization, URLs, mentions, merge tags, and templates.
- 🔌 Complete Vue API —
v-model, typed props, events, slots, exposed methods, runtime configuration updates, disabled mode, and readonly mode. - ⌨️ Keyboard support — editor shortcuts, accessible menu navigation, dialog focus management, table navigation, and suggestion controls.
- ♿ Accessible controls — ARIA labels, roles, live regions, focus restoration, active states, disabled states, and screen-reader-friendly interactions.
- 🧼 Paste cleanup — sanitized formatted HTML, plain-text paste, pasted-image upload, unsafe attribute removal, and practical Word and Google Docs normalization.
- 🛡️ Safer HTML handling — internal allowlist sanitization, safe URL checks, restricted embed handling, script removal, unsafe event removal, and SSR-safe initialization.
- 🎨 Application-safe styling — responsive light/dark editor UI, package-scoped selectors, consistent BEM naming, and prefixed
erag-classes and CSS variables. - 📦 Publishing-ready package — ESM bundle, generated TypeScript declarations, tree-shakable exports, stylesheet export, Vue peer dependency, and Node.js 24 build support.
Documentation
Complete installation, configuration, examples, feature guides, and API documentation:
https://erag.in/text-editor-vue/index.html
⭐ Support
If you like this package, give it a GitHub star.
Related Packages
Customizable TypeScript rich text and WYSIWYG editor with tables for React, Next...
Dependency-free, tree-shakeable rich text editor & WYSIWYG for the web — comment...
Vue 3 and Nuxt rich text editor with components, composables, tables, and no thi...
Vue 3 bindings for RichKit: useEditor composable, EditorContent component and pr...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.0 | >=3.5.0 <4 | MIT | |
| 1.2.0 | >=3.5.0 <4 | MIT | |
| 1.1.0 | >=3.5.0 <4 | MIT | |
| 1.0.0 | >=3.5.0 <4 | MIT | |
| 0.1.0 | >=3.5.0 <4 | MIT | |
| 0.0.3 | >=3.5.0 <4 | MIT | |
| 0.0.2 | >=3.5.0 <4 | MIT |