🚀 BlockNote AI is here! Access the early preview.
BlockNote Docs/Reference/Editor/Editor Options

Editor Options

BlockNote editor options are passed to the BlockNoteEditor constructor.

PropTypeDefault
animations?
boolean
true
collaboration?
CollaborationOptions
-
codeBlock?
CodeBlockOptions
-
comments?
CommentsOptions
-
defaultStyles?
boolean
true
dictionary?
Dictionary
-
disableExtensions?
string[]
-
domAttributes?
Record<string, Record<string, string>>
-
dropCursor?
() => Plugin
-
heading?
{ levels?: (1 | 2 | 3 | 4 | 5 | 6)[] | undefined; }
-
initialContent?
PartialBlock[]
-
pasteHandler?
PasteHandler
-
resolveFileUrl?
((url: string) => Promise<string>)
-
resolveUsers?
((userIds: string[]) => Promise<User[]>)
-
schema
BlockNoteSchema
-
setIdAttribute?
boolean
-
sideMenuDetection?
"editor" | "viewport"
"viewport"
tabBehavior?
"prefer-navigate-ui" | "prefer-indent"
"prefer-navigate-ui"
tables?
TableConfig
-
trailingBlock?
boolean
true
uploadFile?
(file: File) => Promise<UploadFileResult>
-