Quill Magic Url Versions Save

Automatically convert URLs to links in Quill

4.2.0

1 year ago
  • Converted to TypeScript
  • Added type definitions

4.1.7

1 year ago

4.1.5

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/visualjerk/quill-magic-url/compare/4.1.4...4.1.5

4.1.4

2 years ago

What's Changed

Full Changelog: https://github.com/visualjerk/quill-magic-url/compare/4.1.3...4.1.4

4.1.3

2 years ago

Bugfixes

  • Preserve link on paste (#60)

4.1.2

2 years ago

Bugfixes

  • do not trigger on different word in same line

4.1.1

2 years ago

Bugfixes:

  • Don't trigger url check in different line
  • Don't throw error when clicking outside empty editor

4.1.0

2 years ago

Features

  • Triggers on editor blur

4.0.1

2 years ago

Bump dependency versions

4.0.0

2 years ago

Bugfixes:

  • only trigger magic url after typing a single white space
  • only trigger magic url for the first url left of the cursor

BREAKING CHANGE:

urlRegularExpression and mailRegularExpression need to have the g flag to work properly.

This only affects your project, if you use custom regular expressions for url detection.

Example

If you previously defined a custom urlRegularExpression like this:

const quill = new Quill(editor, {
  modules: {
    magicUrl: {
      // Regex used to check URLs during typing
      urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(tel:[\S]+)/,
    },
  },
})

change it to this (notice the g at the end):

const quill = new Quill(editor, {
  modules: {
    magicUrl: {
      // Regex used to check URLs during typing
      urlRegularExpression: /(https?:\/\/[\S]+)|(www.[\S]+)|(tel:[\S]+)/g,
    },
  },
})