Sha256: a3af2bfb3a955afc17656d0110e89b0a8b851b956c63ed9b6aef4650f2fb7d8f
Contents?: true
Size: 825 Bytes
Versions: 388
Compression:
Stored size: 825 Bytes
Contents
import React from "react"; import { useEditor, EditorContent } from "@tiptap/react"; import { RichTextEditor } from "../.."; import Document from "@tiptap/extension-document"; import Paragraph from "@tiptap/extension-paragraph"; import Text from "@tiptap/extension-text"; const RichTextEditorToolbarDisabled = (props) => { const editor = useEditor({ extensions: [Document, Paragraph, Text], content: "Add your text here. You can format your text, add links, quotes, and bullets.", }); if (!editor) { return null; } return ( <div> <RichTextEditor advancedEditor={editor} advancedEditorToolbar={false} {...props} > <EditorContent editor={editor} /> </RichTextEditor> </div> ); }; export default RichTextEditorToolbarDisabled;
Version data entries
388 entries across 388 versions & 2 rubygems