Skip to content

Commit

Permalink
Automatically linkify links (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhayVAshokan authored Dec 20, 2023
1 parent e216a5c commit 8596680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Link from "@tiptap/extension-link";

export default Link.extend({ inclusive: false });
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Color from "@tiptap/extension-color";
import Document from "@tiptap/extension-document";
import Focus from "@tiptap/extension-focus";
import Highlight from "@tiptap/extension-highlight";
import Link from "@tiptap/extension-link";
import TableCell from "@tiptap/extension-table-cell";
import TableHeader from "@tiptap/extension-table-header";
import TableRow from "@tiptap/extension-table-row";
Expand All @@ -24,6 +23,7 @@ import EmojiSuggestion from "../Emoji/EmojiSuggestion/ExtensionConfig";
import ImageExtension from "../Image/ExtensionConfig";
import FigCaption from "../Image/FigCaption";
import KeyboardShortcuts from "../KeyboardShortcuts/ExtensionConfig";
import Link from "../Link/ExtensionConfig";
import Mention, { createMentionSuggestions } from "../Mention/ExtensionConfig";
import Placeholder from "../Placeholder/ExtensionConfig";
import SlashCommands from "../SlashCommands/ExtensionConfig";
Expand Down Expand Up @@ -63,7 +63,6 @@ const useCustomExtensions = ({
VideoExtension,
ImageExtension.configure({ openImageInNewTab }),
Link.configure({
autolink: false,
HTMLAttributes: { target: openLinkInNewTab ? "_blank" : null },
}),
Placeholder.configure({ placeholder }),
Expand Down

0 comments on commit 8596680

Please sign in to comment.