Skip to content

Commit 42410c6

Browse files
committed
fix(links): Use shouldAutoLink instead of validate
Signed-off-by: Jonas <jonas@freesources.org>
1 parent 850f791 commit 42410c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extensions/RichText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default Extension.create({
106106
LinkPicker,
107107
Link.configure({
108108
openOnClick: true,
109-
validate: href => /^https?:\/\//.test(href),
109+
shouldAutoLink: href => /^https?:\/\//.test(href),
110110
relativePath: this.options.relativePath,
111111
}),
112112
LinkBubble,

0 commit comments

Comments
 (0)