npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@erag/text-editor-vue

v1.2.0

Published

A modern dependency-free Vue 3 rich text editor (WYSIWYG) built with native browser APIs. Supports TypeScript, mentions, merge tags, templates, image upload, tables, HTML editing, and customizable toolbars.

Readme

@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 @mention suggestions, 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 APIv-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.