Instantiate Link with inclusive set to false

Ensures consistent behavior with other common text editors, wherein
after applying a link to text, the following text does not also contain
the link
This commit is contained in:
CorreyL
2024-01-21 09:12:05 -08:00
parent 8bca7f5390
commit 176cac4fbe

View File

@ -440,7 +440,7 @@ export const RichInput = forwardRef<Editor, RichInputProps>(
Image, Image,
Underline, Underline,
Highlight, Highlight,
Link.configure({ openOnClick: false }), Link.extend({ inclusive: false }).configure({ openOnClick: false }),
TextAlign.configure({ types: ["heading", "paragraph"] }), TextAlign.configure({ types: ["heading", "paragraph"] }),
], ],
editorProps: { editorProps: {