How could I import editor from Playground #2406
-
I would like to import this editor type. http://www.fallacyfiles.org/contexts.html but it seems I need to implement each plugin from zero base if I do not import packages > playground. How could I solve this issue? is there code example for above url in React? BR, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You can just copy and paste the playground code base into your own project. We deliberately don't allow imports of the playground. We want to treat it as more of a "scratch pad" of ideas, showing how you could go about building a rich text editor with various plugins. It's definitely not a definitive or "best-in-show" way of writing an editor. |
Beta Was this translation helpful? Give feedback.
-
I just updated this related thread -> #2791 Effort should be focused on modularizing the playground into separate packages. I think it would be good to continue the conversation there. |
Beta Was this translation helpful? Give feedback.
-
I made a clone of the repo here using Next.js https://github.com/stevenluongo/lexical-react Hope this helps ! |
Beta Was this translation helpful? Give feedback.
-
If playground is not supposed to be used as a component, maybe worth moving it from |
Beta Was this translation helpful? Give feedback.
You can just copy and paste the playground code base into your own project.
We deliberately don't allow imports of the playground. We want to treat it as more of a "scratch pad" of ideas, showing how you could go about building a rich text editor with various plugins.
It's definitely not a definitive or "best-in-show" way of writing an editor.