-
I'm having a really hard time getting this thing off the ground by following the docs. Working off of this Basic Editor page (https://platejs.org), I've built the following basic Plate instance:
The difficulty I'm having is that the nodes don't seem to have a type associated. When I run the examples on the docs site, the result from the above will be something like:
But when I run it in my project, I get
I haven't been able to find any way to fix this by following the docs or the code. Help? My deps:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
How are you populating your initialValue ? fwiw I find it easier to get started with the examples from codesandbox like https://codesandbox.io/s/2mh1c?file=/index.tsx and then use the playground to explore the features. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip on using that sandbox. I worked up a basic example: https://codesandbox.io/s/plate-playground-forked-umvbk?file=/index.tsx If I leave off the initial value, it breaks in the way I'm asking about, if I include something value, new nodes inserted work correctly, so apparently the answer is yes: an initialValue is required. |
Beta Was this translation helpful? Give feedback.
How are you populating your initialValue ? fwiw I find it easier to get started with the examples from codesandbox like https://codesandbox.io/s/2mh1c?file=/index.tsx and then use the playground to explore the features.