import Document from '@tiptap/extension-document' import Paragraph from '@tiptap/extension-paragraph' import Text from '@tiptap/extension-text' import Underline from '@tiptap/extension-underline' import { EditorContent, useEditor } from '@tiptap/react' import React from 'react' export default () => { const editor = useEditor({ extensions: [Document, Paragraph, Text, Underline], content: `
There is no underline here.
This is underlined though.
And this as well.
`, }) if (!editor) { return null } return ( <>