Skip to content

Commit

Permalink
Set links target to be _blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ngamanda committed Dec 30, 2022
1 parent 2aaa054 commit bd3d8d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Editor = forwardRef((props: EditorProps, ref) => {
new HorizontalRuleExtension(),
new ImageExtension({ enableResizing: !readOnly }),
new ItalicExtension(),
new LinkExtension({ autoLink: true }),
new LinkExtension({ autoLink: true, defaultTarget: '_blank' }),
new ListItemExtension(),
new MarkdownExtension({ htmlSanitizer: DOMPurify.sanitize, htmlToMarkdown, markdownToHtml }),
new OrderedListExtension(),
Expand Down

0 comments on commit bd3d8d2

Please sign in to comment.