@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
7 lines (6 loc) • 694 B
TypeScript
import { BlockNoteEditor, BlockNoteSchema, BlockSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, InlineContentSchema, StyleSchema } from "@blocknote/core";
/**
* Get the BlockNoteEditor instance from the nearest BlockNoteContext provider
* @param _schema: optional, pass in the schema to return type-safe BlockNoteEditor if you're using a custom schema
*/
export declare function useBlockNoteEditor<BSchema extends BlockSchema = DefaultBlockSchema, ISchema extends InlineContentSchema = DefaultInlineContentSchema, SSchema extends StyleSchema = DefaultStyleSchema>(_schema?: BlockNoteSchema<BSchema, ISchema, SSchema>): BlockNoteEditor<BSchema, ISchema, SSchema>;