Has anyone been able to replicate Plate Playground? #1328
-
Hi everyone, I've spent a few hours trying to replicate this: https://platejs.org, even replicating the code-sandbox.io itself and trying to run it locally. Yet I always get some error and it breaks completely. Has anyone been able to find a way to actually get it to work? If so, could you kindly share your repository? I'm not sure if I'm missing something from the documentation but all I am trying to do is replicate it locally and build from there. Any assistance would be greatly appreciated. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 16 replies
-
Are you able to clone the repo and run something like yarn, yarn build, and yarn docs. That works for me. |
Beta Was this translation helpful? Give feedback.
-
Docs are indeed not perfect and I'm open to PRs. Can you share the error messages you have? |
Beta Was this translation helpful? Give feedback.
-
"It seems the entire repo is broken in fundamental ways." That's simply not true, fwiw. Yes, there's a barrier to entry as there is with any reasonably ambitious project. The docs part of the website is setup in a way to support the features of the website rather than being a pure set of examples to copy/paste or clone. It's meant for discoverability and a quick test harness and as mentioned you can at least get it up and running with a few yarn commands, but it's not isolated. Similarly, code sandbox requires some quirks to get things working in that environment, so simply copying that isn't ideal. @zbeyens we probably should just create a quick hello world repo that users can replicate to try things out that matches a typical dev workflow. That said, it took me maybe 15 minutes to get things up and running the first time so it never occurred to me that this was a barrier to entry. |
Beta Was this translation helpful? Give feedback.
-
👋 Hello, I thought I might drop in quickly here. First of all I want to thank you for this great package! It's really powerful and I see the potential. I have been researching various rich text editor to be used in Next.js for internal work I am doing at Vercel and I have had difficulty on boarding on some of the more complex features you provide. I have some feedback to share (as a dev who spends my days prototyping and exploring packages): Good parts: Getting to the basic editor is super easy and simple to do. It took me 5 minutes by reading the docs. The repo is amazingly modular and it's clear you are building this to be flexible. Stuff I would love to see The starting tutorial should bring users to a point where they understand how to build a toolbar or bubble toolbar:
In this current state the barrier to entry is not user friendly, some help would be appreciated in at least making a tool bar render without having to reverse engineer or clone to repo. |
Beta Was this translation helpful? Give feedback.
-
This is a fantastic project, but I want to echo the above sentiments. Most of the examples from the documentation do not stand on their own-- most examples reference CONFIG, VALUES, and seemingly-hello-world essential code housed in the sandbox. Instead of making the maintainers publish an opinionated hello-world repo, perhaps just point at some well-executed deployments of Plate? |
Beta Was this translation helpful? Give feedback.
-
To be honest @kevcmk and @gbibeaul ... if you want a good editor with proper documentation I would use TipTap. The documentation on this project is just ... non-workable. The time you would lose just trying to integrate any functionality into your project is simply not worth it until they fix the documentation. |
Beta Was this translation helpful? Give feedback.
-
I went thru the same struggle in the past couple days myself, but got the playground working on its own with some work. Unfortunately I didn't see the CONTRIBUTING.md until after my effort, but following it, I was able to build the docs site that hosts the playground. I got the playground working on its own here. I cloned the repo, copied the playground source into an empty react app, and then started hacking away at it until it worked. In the notes of the README, I jotted down the extra deps and tweaks I had to make to get the code to compile in Typescript. Hope this is helpful. As a note, I have also found some difficulty following the docs and examples as well, but I do understand how hard it is to maintain a project and appreciate what y'all have accomplished. |
Beta Was this translation helpful? Give feedback.
-
We now have a working example of the playground, head over https://github.com/udecode/plate-playground, which is linked to our sandbox https://codesandbox.io/s/github/udecode/plate-playground See also |
Beta Was this translation helpful? Give feedback.
We now have a working example of the playground, head over https://github.com/udecode/plate-playground, which is linked to our sandbox https://codesandbox.io/s/github/udecode/plate-playground
See also
/examples/apps/next