1.0.0-alpha.1 • Published 11 months ago

quill-auto-detect-url v1.0.0-alpha.1

Weekly downloads
10
License
MIT
Repository
github
Last release
11 months ago

quill-auto-detect-url

This module is based on quill-magic-url

It was created to transform the url of the url as the user types.

This library supports Quill Version 2 starting from version 1

Demo

Install

yarn add quill-auto-detect-url
// or
npm install quill-auto-detect-url

Usage

import Quill from "quill";
import QuillAutoDetectUrl, {
  QuillAutoDetectUrlOptions,
} from "quill-auto-detect-url";

Quill.register("modules/autoDetectUrl", QuillAutoDetectUrl);

const quill = new Quill("#editor", {
  theme: "snow",
  modules: {
    autoDetectUrl: {
      urlRegularExpression: /(https?:\/\/|www\.)[\w-.]+\.[\w-.]+[\S]+/i,
    } as QuillAutoDetectUrlOptions, // or true
  },
});

Options

please see magic-url docs

1.0.0-alpha.1

11 months ago

1.0.0-alpha.0

11 months ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago