quill-auto-link

0.1.1 • Public • Published

Quill Auto Link

Quill Auto Link is a module for react-quill.

It allows the user to transform an URL when typing or pasting a text containing a URL.

Installation

npm install --save quill-auto-link

Documentation

import { Quill } from 'react-quill';

...

Quill.register('modules/autoLinkType', AutoLinkType);
Quill.register('modules/autoLinkPaste', AutoLinkPaste);

const modules = {
    ...,
    autoLinkPaste: true,
    autoLinkType: true,
    ...,
};

...

const Component = () => (
    <ReactQuill
        ...
        modules={{
            ...modules,
        }}
        ...
    >
      {children}
    </ReactQuill>
)

Package Sidebar

Install

npm i quill-auto-link

Weekly Downloads

11

Version

0.1.1

License

MIT

Unpacked Size

853 kB

Total Files

13

Last publish

Collaborators

  • ktanktan