Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/quill

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/quill

TypeScript definitions for Quill

  • 2.0.10
  • ts4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
406K
decreased by-53.08%
Maintainers
1
Weekly downloads
 
Created

What is @types/quill?

@types/quill provides TypeScript definitions for the Quill rich text editor, allowing developers to use Quill in TypeScript projects with type safety and IntelliSense support.

What are @types/quill's main functionalities?

Basic Editor Initialization

Initializes a basic Quill editor with the 'snow' theme. This is the most fundamental use case for setting up a Quill editor.

const quill = new Quill('#editor', { theme: 'snow' });

Custom Toolbar

Sets up a Quill editor with a custom toolbar configuration, allowing for specific formatting options like bold, italic, and lists.

const toolbarOptions = [['bold', 'italic'], [{ 'list': 'ordered'}, { 'list': 'bullet' }]]; const quill = new Quill('#editor', { modules: { toolbar: toolbarOptions }, theme: 'snow' });

Event Handling

Adds an event listener to the Quill editor to handle text changes, useful for reacting to user input in real-time.

quill.on('text-change', function(delta, oldDelta, source) { console.log('Text change detected!'); });

Content Retrieval

Retrieves the current content of the Quill editor in Delta format, which can be used for saving or processing the editor's content.

const content = quill.getContents(); console.log(content);

Other packages similar to @types/quill

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc