Socket
Book a DemoInstallSign in
Socket

quill-auto-links

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quill-auto-links

Automatically convert typed and pasted links to real links in Quill

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
6.8K
7.56%
Maintainers
1
Weekly downloads
 
Created
Source

A module for the Quill Rich Text Editor to transform http links (typed or pasted) to <a> tags automatically.

Demo

Plunker

Usage

import Quill from 'quill';
import AutoLinks from 'quill-auto-links';

Quill.register('modules/autoLinks', AutoLinks);

const quill = new Quill(editor, {
  modules: {
    autoLinks: true
  }
});

Options

  • paste Enable link formatting when pasting text - defaults to true
  • type Enable link formatting when typing text - defaults to true

Examples:


// Enable for pasting and typing
const quill1 = new Quill(editor, {
  modules: {
    autoLinks: true
  }
});

// Disable for pasting and typing
const quill2 = new Quill(editor, {
  modules: {
    autoLinks: {
      paste: false,
      type: false
    }
  }
});


// Disable for pasting, but enable for typing

const quill3 = new Quill(editor, {
  modules: {
    autoLinks: {
      paste: false,
      type: true
    }
  }
});

Small Improvements

Keywords

quill

FAQs

Package last updated on 27 Apr 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.