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
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ type BlockNoteEditorOptions = {
27
27
dictionary?:Dictionary;
28
28
schema?:BlockNoteSchema;
29
29
trailingBlock?:boolean;
30
+
animations?:boolean;
30
31
};
31
32
```
32
33
@@ -50,6 +51,8 @@ The hook takes two optional parameters:
50
51
51
52
`trailingBlock`: An option which user can pass with `false` value to disable the automatic creation of a trailing new block on the next line when the user types or edits any block. Defaults to `true` if undefined.
52
53
54
+
`animations`: Whether changes to blocks (like indentation, creating lists, changing headings) should be animated or not. Defaults to `true`.
55
+
53
56
**deps:** Dependency array that's internally passed to `useMemo`. A new editor will only be created when this array changes.
54
57
55
58
<Callouttype="info"emoji={"💡"}>
@@ -58,9 +61,9 @@ The hook takes two optional parameters:
58
61
The `useCreateBlockNote` hook is actually a simple `useMemo` wrapper around
59
62
the `BlockNoteEditor.create` method. You can use this method directly if you
60
63
want to control the editor lifecycle manually. For example, we do this in
61
-
the [Saving & Loading example](/examples/backend/saving-loading) to delay the
62
-
editor creation until some content has been fetched from an external data
63
-
source.
64
+
the [Saving & Loading example](/examples/backend/saving-loading) to delay
65
+
the editor creation until some content has been fetched from an external
0 commit comments