Releases: visualjerk/quill-magic-url
Releases · visualjerk/quill-magic-url
4.2.0
4.1.7
4.1.5
4.1.4
What's Changed
- Bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #61
- Fix/65 unexpected blur by @visualjerk in #73
Full Changelog: 4.1.3...4.1.4
4.1.3
4.1.2
Bugfixes
- do not trigger on different word in same line
4.1.1
Bugfixes:
- Don't trigger url check in different line
- Don't throw error when clicking outside empty editor
4.1.0
Features
- Triggers on editor blur
4.0.1
Bump dependency versions
4.0.0
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,
},
},
})