quill-auto-links

0.1.3 • Public • Published

Quill Auto Links Module

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    12,620
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    12,620
  • 0.1.2
    2
  • 0.1.1
    3
  • 0.1.0
    2

Package Sidebar

Install

npm i quill-auto-links

Weekly Downloads

8,903

Version

0.1.3

License

MIT

Unpacked Size

6.32 kB

Total Files

4

Last publish

Collaborators

  • lfdm