-
I apologize for the question, I've been trying for many hours now and unfortunately I'm not able to get custom components in. Say something as silly as a component that returns I hope this can be put into the code
I just want it to like directly splat a component into there, currently I have custom toolbar buttons and they can insert other things but it's like my custom component just doesn't even exist. >_< I figured it would be something like
And the component
What would be absolutely fantastic and amazing would be if there was a like ELI5 on how to set up a custom component like this that accepts props and how to add a button to the toolbar that puts it there.
Actually another fantastic thing would be how we should actually insert a node from a custom toolbar component, right now it's very very much got me confused >_< |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@ctevans did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
We are using custom components in our implementation, you can find a small example in this discussion thread. Unfortunately, we are also having trouble with rendering some of the components - or I should say with supporting more advanced behaviour (also discussed in the thread). |
Beta Was this translation helpful? Give feedback.
-
Here is the new guide: https://platejs.org/docs/plugin |
Beta Was this translation helpful? Give feedback.
Here is the new guide: https://platejs.org/docs/plugin