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

    Interface UseNoteEditorResult

    Return type for the useNoteEditor hook.

    interface UseNoteEditorResult {
        canRedo: boolean;
        canUndo: boolean;
        clear: () => void;
        content: JSONContent;
        editor: Editor | null;
        focus: () => void;
        getHTML: () => string;
        getText: () => string;
        isEmpty: boolean;
        isFocused: boolean;
        isLoading: boolean;
        redo: () => void;
        setContent: (content: JSONContent) => void;
        undo: () => void;
    }
    Index

    Properties

    canRedo: boolean

    Whether redo is available

    canUndo: boolean

    Whether undo is available

    clear: () => void

    Clear the editor content

    content: JSONContent

    Current content as JSON

    editor: Editor | null

    TipTap editor instance (null until initialized)

    focus: () => void

    Focus the editor

    getHTML: () => string

    Get content as HTML string

    getText: () => string

    Get content as plain text

    isEmpty: boolean

    Whether the editor is empty

    isFocused: boolean

    Whether the editor is focused

    isLoading: boolean

    Whether extensions are still loading (for lazy-loaded extensions)

    redo: () => void

    Redo the last undone action

    setContent: (content: JSONContent) => void

    Set content programmatically

    undo: () => void

    Undo the last action