Trevixal API
    Preparing search index...

    Function ensureBlockId

    • The id a link to a block points at, given to the block first when it has none. The transaction carries the new id; null when the block cannot be linked to.

      Parameters

      • state: EditorState
      • index: number

      Returns { id: string; tr: Transaction | null } | null