Sanity Library Reference Docs
    Preparing search index...

    Interface BlockOptions

    Schema options for a Block schema definition

    interface BlockOptions {
        oneLine?: boolean;
        spellCheck?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    oneLine?: boolean

    When enabled, the editor will restrict all line breaks and soft breaks, forcing content to remain on a single line. This will also update the styling of the editor to reflect the single-line constraint.

    Pasting content that is on multiple lines will be normalized to a single line, if possible.

    false
    
    spellCheck?: boolean

    Turn on or off the builtin browser spellchecking. Default is on.