You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/docs/editor-basics/setup.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,9 @@ type BlockNoteEditorOptions = {
32
32
width?:number;
33
33
class?:string;
34
34
}) =>Plugin;
35
+
heading?: {
36
+
levels?:number[];
37
+
};
35
38
initialContent?:PartialBlock[];
36
39
pasteHandler?: (context: {
37
40
event:ClipboardEvent;
@@ -73,6 +76,8 @@ The hook takes two optional parameters:
73
76
74
77
`initialContent:` The content that should be in the editor when it's created, represented as an array of [Partial Blocks](/docs/manipulating-blocks#partial-blocks).
75
78
79
+
`heading`: Configuration for headings. Allows you to configure the number of levels of headings that should be available in the editor. Defaults to `[1, 2, 3]`. Configurable up to 6 levels of headings.
80
+
76
81
`pasteHandler`: A function that can be used to override the default paste behavior. See [Paste Handling](/docs/advanced/paste-handling) for more.
77
82
78
83
`resolveFileUrl:` Function to resolve file URLs for display/download. Useful for creating authenticated URLs or implementing custom protocols.
0 commit comments