Skip to content

Releases: visualjerk/quill-magic-url

4.2.0

25 Aug 20:27
Compare
Choose a tag to compare
  • Converted to TypeScript
  • Added type definitions

4.1.7

19 Jul 22:21
Compare
Choose a tag to compare

Chore

  • Updated packages

Full Changelog: 4.1.6...4.1.7

4.1.5

19 Jul 22:02
Compare
Choose a tag to compare

What's Changed

  • Bugfix: Empty ops causes crash by @xale-a in #79

New Contributors

Full Changelog: 4.1.4...4.1.5

4.1.4

09 Apr 13:38
8b75b46
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.1.3...4.1.4

4.1.3

03 Sep 19:09
9478bb1
Compare
Choose a tag to compare

Bugfixes

  • Preserve link on paste (#60)

4.1.2

14 Jul 06:57
e142e90
Compare
Choose a tag to compare

Bugfixes

  • do not trigger on different word in same line

4.1.1

13 Jul 19:56
58d9e0d
Compare
Choose a tag to compare

Bugfixes:

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

4.1.0

13 Jul 19:12
7ee1a67
Compare
Choose a tag to compare

Features

  • Triggers on editor blur

4.0.1

13 Jul 18:35
Compare
Choose a tag to compare

Bump dependency versions

4.0.0

13 Jul 17:55
de76180
Compare
Choose a tag to compare

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,
    },
  },
})