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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pastho/vue-quill-blog-editor

v1.0.3

Published

A lightweight, Vue 3-based rich text editor component that wraps the powerful [Quill](https://quilljs.com) editor. Built using the Composition API and styled with Quill's Snow theme, this component is easy to use, reusable across projects, and ready for

Readme

Vue Quill Blog Editor

A lightweight, Vue 3-based rich text editor component that wraps the powerful Quill editor. Built using the Composition API and styled with Quill's Snow theme, this component is easy to use, reusable across projects, and ready for modern Vue applications.


✨ Features

  • 🧩 Reusable Vue 3 component (Composition API)
  • 🖋 Two-way binding via v-model
  • 🎨 Pre-styled with Quill’s Snow theme
  • 🔌 Works seamlessly with Vite, TypeScript, and modern tooling
  • ✂️ Supports soft line breaks and robust formatting

Component Playground:

  • 🖼️ Includes a custom image handler and built-in image service for uploads/deletes
  • 🚮 Automatically deletes images removed from the editor using your configured service

📦 Installation

Install the component and peer dependencies:

npm install @pastho/vue-quill-blog-editor quill vue

🚀 Usage

  1. Import the Required Quill Styles
/* Mandatory import in main.css or other styling source */
@import 'quill/dist/quill.core.css';

/* import either snow, bubble or both */
@import 'quill/dist/quill.snow.css';
@import 'quill/dist/quill.bubble.css';
  1. Use in Your Vue Component

<script setup>
  import {ref} from 'vue'
  import {QuillBlogEditor} from '@pastho/vue-quill-blog-editor'

  const content = ref('<p>Hello, world!</p>')
</script>

<template>
  <QuillBlogEditor v-model="content"/>
</template>

Check the playground example which shows the integration of a custom Quill module paired with a custom toolbar handler.

📚 Props

| Prop | Type | Default | Description | |-------------|---------------------|------------------------|---------------------------------| | modelValue | String | '' | HTML content bound with v-model | | theme | String | 'snow' | Quill theme (snow, bubble) | | placeholder | String | 'Write something...' | Editor placeholder text | | readOnly | Boolean | false | Makes the editor read-only | | formats | Array<string> | undefined | Allowed Quill formats | | toolbar | String | Array | 'full' | Toolbar config, string or array | | options | Object | {} | Quill options override | | features | Object | {} | Additional feature toggles |


🎨 Styling (Required)

This component uses Quill’s Snow theme by default. To ensure the editor appears correctly, **import the Quill stylesheet ** into your app (required if you use a custom build process):

import '@pastho/vue-quill-blog-editor/dist/quill.snow.css'

Note: If this file is not imported, the editor will render without proper styling.

🛠 Development

To run and test the component locally:

# Clone or work in your component directory
npm install
npm run dev

To build the component and prepare it for reuse or publishing:

npm run build

This will output the compiled module and a copy of quill.snow.css in the dist/ folder.

📁 Project Structure

vue-quill-blog-editor/
├── src/
│   └── QuillBlogEditor.vue              # Main component
│   └── index.ts                         # Component exposure
├── scripts/
│   └── postbuild.js                     # Copies Quill theme CSS to dist
├── playground/                          # Local test app
│   └── modules/
│       └── ImageHandler.ts              # Example implementatio of a custom Quill module to handle images (e.g., resizing)
│   └── services/
│       └── ImageService.ts              # Encapsulates the service for uploading and deleting images from a server 
├── tests/                               # Local test app
│   └── unit/
│       └── QuillBlogEditor.spec.ts      # Collection of unit test to test the QuillBlogEditor integration with Vue
├── package.json
├── tsconfig.json
├── vite.config.ts
├── .gitignore
└── README.md

🛠 Build & Distribution

Some build processes require Quill's CSS to be present in your distribution. This project includes a simple Node script that copies the required CSS files from node_modules/quill/dist to the dist/ directory, which you can run as part of your build step.


🧩 Extending and Custom Modules

You can register custom Quill modules by using Quill's global API or by following extension patterns in the codebase.


📝 License

MIT


📣 Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements.