Hiyve Components - v1.0.0
    Preparing search index...

    Function useNoteEditor

    • Hook that wraps TipTap useEditor with configured extensions.

      Parameters

      Returns UseNoteEditorResult

      Editor instance and helper methods

      This hook provides a pre-configured TipTap editor with support for:

      • Basic formatting (bold, italic, strikethrough, code)
      • Headings (H1, H2, H3)
      • Lists (bullet, numbered, task)
      • Tables with full editing support
      • Blockquotes and horizontal rules
      • Highlighting
      • Text color
      function MyEditor() {
      const { editor, content, isEmpty, setContent } = useNoteEditor({
      initialContent: { type: 'doc', content: [] },
      placeholder: 'Start typing...',
      onUpdate: (content) => console.log('Content changed:', content),
      });

      return <EditorContent editor={editor} />;
      }