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

@oix1987/yjd-vue3

v1.0.1

Published

A powerful rich text editor with real-time content change tracking for web applications using vue 3.*

Downloads

20

Readme

YJD Vue3 Rich Editor

A powerful and professional rich text editor component for Vue 3 applications with real-time content change tracking. Built for modern web applications requiring advanced text editing capabilities.

🚀 Features

  • 🎨 Rich Text Formatting: Bold, italic, underline, strikethrough, subscript, superscript
  • 🌈 Advanced Styling: Text color, background color, font family, text size, line height
  • 📝 Document Structure: Headings (H1-H6), text alignment, lists, indentation
  • 🔗 Media Integration: Links, images, videos, tables, emojis
  • 🛠 Customizable Toolbars: Dual toolbar system with flexible configuration
  • 📱 Responsive Design: Modern, professional UI that works on all devices
  • Vue 3 Optimized: Full Vue 3 composition API support with reactive content
  • 🎯 Real-time Tracking: Advanced content change detection and custom callbacks
  • 🔄 History Management: Complete undo/redo functionality
  • 📊 Code View: Toggle between WYSIWYG and HTML source code view
  • 🎭 Theme Support: Multiple themes and customization options

📦 Installation

npm install @oix1987/yjd-vue3

🔧 Quick Start

<template>
  <div>
    <YjdRichEditor
      v-model:content="content"
      @update:content="handleContentChange"
      @ready="handleEditorReady"
      :height="500"
      :width="800"
      placeholder="Start creating amazing content..."
      :toolbar1="toolbar1"
      :toolbar2="toolbar2"
    />
  </div>
</template>

<script setup>
import { ref } from "vue";
import YjdRichEditor from "@oix1987/yjd-vue3";

const content = ref("<p>Welcome to YJD Rich Editor!</p>");

// Professional toolbar configuration
const toolbar1 = [
  { group: "text-format", items: ["bold", "italic", "underline", "strike"] },
  { group: "more", items: ["more"] },
];

const toolbar2 = [
  { group: "colors", items: ["color", "background"] },
  { group: "structure", items: ["text-size", "link"] },
];

const handleContentChange = (newContent) => {
  console.log("Content changed:", newContent);
  // Your business logic here
};

const handleEditorReady = (editor) => {
  console.log("Editor ready:", editor);
  // Initialize your application logic
};
</script>

📋 API Reference

Props

| Prop | Type | Default | Description | | ------------- | -------- | ---------------- | --------------------------------------------------- | | content | String | null | Initial HTML content for the editor | | height | Number | 400 | Editor height in pixels | | width | Number | 800 | Editor width in pixels | | placeholder | String | "Type here..." | Placeholder text when editor is empty | | onChange | Function | null | Custom callback function for content changes | | toolbar1 | Array | null | Custom toolbar configuration for first toolbar row | | toolbar2 | Array | null | Custom toolbar configuration for second toolbar row |

Events

| Event | Payload | Description | | ---------------- | -------- | ---------------------------------------- | | update:content | string | Emitted when editor content changes | | ready | editor | Emitted when editor is fully initialized |

🎛️ Toolbar Configuration

Professional Group Structure

<script setup>
// Advanced toolbar configuration
const toolbar1 = [
  { group: "text-format", items: ["bold", "italic", "underline", "strike"] },
  { group: "script", items: ["subscript", "superscript"] },
  { group: "more", items: ["more"] },
];

const toolbar2 = [
  { group: "colors", items: ["color", "background"] },
  { group: "structure", items: ["heading", "text-align"] },
  { group: "media", items: ["link", "image", "table"] },
];
</script>

Available Toolbar Items

Text Formatting:

  • bold, italic, underline, strike
  • subscript, superscript

Colors & Styling:

  • color, background
  • font-family, text-size, line-height
  • capitalization

Document Structure:

  • heading, text-align, list
  • indent-increase, indent-decrease

Media & Interactive:

  • link, image, video, table
  • emoji

Tools & Actions:

  • undo, redo, code-view
  • more (expands toolbar options)

🔧 Advanced Usage

Component Methods

<template>
  <YjdRichEditor ref="editorRef" />
</template>

<script setup>
import { ref } from "vue";

const editorRef = ref(null);

// Get current content
const getCurrentContent = () => {
  return editorRef.value.getContent();
};

// Set new content programmatically
const setEditorContent = (htmlContent) => {
  editorRef.value.setContent(htmlContent);
};

// Focus the editor
const focusEditor = () => {
  editorRef.value.focus();
};

// Access the core editor instance
const getEditorInstance = () => {
  return editorRef.value.getEditor();
};
</script>

Real-time Content Tracking

<script setup>
const handleContentChange = (content) => {
  // Real-time content tracking
  console.log("Content length:", content.length);

  // Auto-save functionality
  if (content.length > 0) {
    autoSave(content);
  }

  // Content validation
  validateContent(content);
};

const autoSave = (content) => {
  // Implement your auto-save logic
  localStorage.setItem("draft", content);
};

const validateContent = (content) => {
  // Implement content validation
  const wordCount = content.replace(/<[^>]*>/g, "").split(/\s+/).length;
  console.log("Word count:", wordCount);
};
</script>

Development

Project Setup

# Clone the repository
git clone https://github.com/oix1987/yjd-vue3.git

# Install dependencies
npm install

# Start development server
npm run dev

Build Commands

# Build library for production
npm run build

# Build demo application
npm run build:demo

# Run linter
npm run lint

🌐 Browser Support

  • ✅ Chrome (latest)
  • ✅ Firefox (latest)
  • ✅ Safari (latest)
  • ✅ Edge (latest)
  • ✅ Mobile browsers (iOS Safari, Chrome Mobile)

📋 Requirements

  • Vue.js: 3.0.0 or higher
  • Node.js: ^20.19.0 || >=22.12.0
  • Modern Browser: ES6+ support required

📄 License

ISC License - see the LICENSE file for details.

👨‍💻 Author

Oix1987

  • Professional Vue.js Developer
  • Rich Text Editor Specialist

🤝 Commercial Support

This is a commercial-grade component suitable for:

  • ✅ Enterprise applications
  • ✅ Content management systems
  • ✅ E-learning platforms
  • ✅ Documentation tools
  • ✅ Blog and publishing platforms

For commercial support, custom features, or enterprise licensing, please contact the author.

🚀 Why Choose YJD Vue3 Rich Editor?

  • Production Ready: Battle-tested in real-world applications
  • Performance Optimized: Efficient rendering and memory management
  • Highly Customizable: Extensive configuration options
  • Professional Support: Commercial-grade documentation and support
  • Regular Updates: Continuous improvement and feature additions
  • Vue 3 Native: Built specifically for Vue 3 ecosystem

📈 Changelog

v1.0.1

  • Initial commercial release
  • Full Vue 3 support
  • Advanced toolbar configuration
  • Real-time content tracking
  • Professional UI/UX

Made with ❤️ for the Vue.js community