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

@botom/quill-resize-module

v2.1.0

Published

πŸ”’ Secure & modern Quill.js module for resizing images, videos, and iframes with zero vulnerabilities and automatic releases

Readme

Quill Resize Module

A modern, secure module for the Quill rich text editor that allows you to resize images, videos, and iframes with comprehensive security updates and enhanced features.

npm version GitHub license GitHub stars Security

✨ Features

  • πŸ–ΌοΈ Image Resizing - Resize images with drag handles
  • πŸŽ₯ Video Resizing - Resize videos maintaining aspect ratio
  • πŸ“± Responsive Design - Works on all devices
  • 🌐 Multi-language Support - Customizable locale options
  • πŸ”’ Security First - Zero vulnerabilities, modern dependencies
  • ⚑ Performance Optimized - Lightweight and fast
  • 🎨 Customizable Toolbar - Show/hide alignment and size tools
  • πŸ“ Size Display - Optional size indicator

πŸš€ Demo

Live Demo: https://botoom.github.io/quill-resize-module/

Demo

πŸ“¦ Installation

npm install @botom/quill-resize-module

πŸ› οΈ Usage

ES6/TypeScript

import Quill from "quill";
import ResizeModule from "@botom/quill-resize-module";

Quill.register("modules/resize", ResizeModule);

const quill = new Quill("#editor", {
  modules: {
    resize: {
      showSize: true,
      locale: {
        altTip: "Hold down the alt key to zoom",
        floatLeft: "Left",
        floatRight: "Right", 
        center: "Center",
        restore: "Restore",
      },
    },
  },
});

Browser (CDN)

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Quill Resize Module Demo</title>
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.snow.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@botom/quill-resize-module@latest/dist/quill-resize-module.js"></script>
</head>
<body>
  <div id="editor"></div>
  <script>
    Quill.register("modules/resize", window.QuillResizeModule);
    
    const quill = new Quill("#editor", {
      modules: {
        toolbar: ["bold", "italic", "image", "video"],
        resize: {
          showSize: true,
          locale: {}
        }
      },
      theme: "snow"
    });
  </script>
</body>
</html>

βš™οΈ Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | showToolbar | boolean | true | Show/hide the toolbar | | showSize | boolean | false | Display current dimensions | | locale | object | {} | Custom language strings | | toolbar.sizeTools | boolean | true | Show size adjustment tools | | toolbar.alingTools | boolean | true | Show alignment tools |

Locale Configuration

const quill = new Quill("#editor", {
  modules: {
    resize: {
      locale: {
        altTip: "Hold down the alt key to zoom",
        floatLeft: "Left",
        floatRight: "Right",
        center: "Center",
        restore: "Restore",
      },
    },
  },
});

Toolbar Customization

// Hide alignment tools (for newer Quill versions)
const quill = new Quill("#editor", {
  modules: {
    resize: {
      toolbar: {
        alingTools: false,  // Hide alignment
        sizeTools: true,   // Keep size tools
      },
    },
  },
});

πŸ”§ Advanced Configuration

For the latest versions of Quill that don't support the style attribute:

const quill = new Quill("#editor", {
  modules: {
    resize: {
      toolbar: {
        alingTools: false,  // Disable alignment tools
      },
      showSize: true,
    },
  },
});

πŸ› Bug Fixes & Security

Recent Fixes

  • βœ… Fixed positioning when nested inside relative elements (PR #12)
  • βœ… Security vulnerabilities resolved (DOM Clobbering XSS, RCE)
  • βœ… Dependencies updated to latest secure versions
  • βœ… Build system modernized with Rollup v3

Security Status

  • πŸ”’ 0 vulnerabilities (npm audit)
  • πŸ›‘οΈ Modern dependencies (no deprecated packages)
  • βœ… CI/CD security with Node.js 20.x

πŸ“± Browser Support

| Browser | Version | |---------|---------| | Chrome | 70+ | | Firefox | 65+ | | Safari | 12+ | | Edge | 79+ |

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Commit Convention

This project follows Conventional Commits for automated versioning:

  • feat: for new features
  • fix: for bug fixes
  • docs: for documentation
  • style: for formatting
  • refactor: for code refactoring
  • test: for tests
  • chore: for maintenance

πŸ“‹ Development

# Clone the repository
git clone https://github.com/BOTOOM/quill-resize-module.git
cd quill-resize-module

# Install dependencies
npm install

# Start development
npm run dev

# Run tests
npm test

# Build for production
npm run build

πŸ“„ License

MIT Β© Edwar Diaz

πŸ”— Related Projects

πŸ“Š Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests