Sha256: 70eec9826573d61a366ccdcd854784f97b455e1b0da79c1568647e67a64aa4e3
Contents?: true
Size: 764 Bytes
Versions: 753
Compression:
Stored size: 764 Bytes
Contents
import React from 'react' import { RichTextEditor } from '../..' import { useEditor, EditorContent } from "@tiptap/react" import StarterKit from "@tiptap/starter-kit" import Link from '@tiptap/extension-link' const RichTextEditorAdvancedDefault = (props) => { const editor = useEditor({ extensions: [ StarterKit, Link ], content:"Add your text here. You can format your text, add links, quotes, and bullets." }) if (!editor) { return null } return ( <div> <RichTextEditor advancedEditor={editor} {...props} > <EditorContent editor={editor}/> </RichTextEditor> </div> ) } export default RichTextEditorAdvancedDefault
Version data entries
753 entries across 753 versions & 2 rubygems