Skip to content

Commit fdbb1ed

Browse files
Changed allBlocks to topLevelBlocks in docs (#152)
1 parent 0bc681e commit fdbb1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/website/docs/docs/converting-blocks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ It's possible to export or import Blocks to and from Markdown and HTML.
55
::: warning
66
The functions to import/export to and from Markdown/HTML are considered "lossy"; some information might be dropped when you export Blocks to those formats.
77

8-
To serialize Blocks to a non-lossy format (for example, to store the contents of the editor in your backend), simply export the built-in Block format using `JSON.stringify(editor.allBlocks)`.
8+
To serialize Blocks to a non-lossy format (for example, to store the contents of the editor in your backend), simply export the built-in Block format using `JSON.stringify(editor.topLevelBlocks)`.
99
:::
1010

1111
## Markdown

0 commit comments

Comments
 (0)