Sha256: ec09553eafaa94608d183c5035f01f2f481ce8a672fd136d8e43ee1456fb67fe
Contents?: true
Size: 831 Bytes
Versions: 679
Compression:
Stored size: 831 Bytes
Contents
import React from "react"; import { useEditor, EditorContent } from "@tiptap/react"; import { RichTextEditor } from "playbook-ui"; 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
679 entries across 679 versions & 2 rubygems