diff options
author | Raul <raul@nextcloud.com> | 2022-07-25 15:38:44 +0300 |
---|---|---|
committer | Raul Ferreira Fuentes <Raudius@users.noreply.github.com> | 2022-07-26 15:09:34 +0300 |
commit | 32f0d226cb90d7d55cf53185a4a6f7a877ab6f84 (patch) | |
tree | 296e218edd5fa0b43bd129af2c34e453fb666e97 /src/extensions | |
parent | e89419f4236f404f705b9741f48b27ff79dcec4a (diff) |
Only autolink URLs containing protocol
Signed-off-by: Raul <raul@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'src/extensions')
-rw-r--r-- | src/extensions/RichText.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extensions/RichText.js b/src/extensions/RichText.js index 1bc598a16..ec41d6c85 100644 --- a/src/extensions/RichText.js +++ b/src/extensions/RichText.js @@ -94,6 +94,7 @@ export default Extension.create({ defaultExtensions.push(Link.configure({ ...this.options.link, openOnClick: true, + validate: href => /^https?:\/\//.test(href), })) } const additionalExtensionNames = this.options.extensions.map(e => e.name) |