fix: add tlds (#851)

This commit is contained in:
Dakshesh Jain 2023-04-19 15:40:47 +05:30 committed by GitHub
parent 63a36fb25d
commit ac125965eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,8 @@ import {
OnChangeHTML,
} from "@remirror/react";
import { TableExtension } from "@remirror/extension-react-tables";
// tlds
import tlds from "tlds";
// services
import fileService from "services/file.service";
// ui
@ -136,7 +138,10 @@ const RemirrorRichTextEditor: FC<IRemirrorRichTextEditor> = (props) => {
new CodeExtension(),
new PlaceholderExtension({ placeholder: placeholder || "Enter text..." }),
new HistoryExtension(),
new LinkExtension({ autoLink: true }),
new LinkExtension({
autoLink: true,
autoLinkAllowedTLDs: tlds,
}),
new ImageExtension({
enableResizing: true,
uploadHandler: uploadImageHandler,

View File

@ -38,6 +38,7 @@
"recharts": "^2.3.2",
"remirror": "^2.0.23",
"swr": "^1.3.0",
"tlds": "^1.238.0",
"uuid": "^9.0.0"
},
"devDependencies": {

View File

@ -7763,6 +7763,11 @@ tinycolor2@^1.4.1:
resolved "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz"
integrity sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==
tlds@^1.238.0:
version "1.238.0"
resolved "https://registry.yarnpkg.com/tlds/-/tlds-1.238.0.tgz#ffe7c19c8940c35b497cda187a6927f9450325a4"
integrity sha512-lFPF9pZFhLrPodaJ0wt9QIN0l8jOxqmUezGZnm7BfkDSVd9q667oVIJukLVzhF+4oW7uDlrLlfJrL5yu9RWwew==
to-fast-properties@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz"