0.2.1 • Published 3 years ago

quill-auto-detect-url v0.2.1

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years 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.

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

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago