Adding a toolbar #2649
-
Dear Lexical team, Can you please explain me, how to add toolbar in lexical? I saw the toolbar as plugin on playground (ToolbarPlugin.tsx), but i can't find it in lexical. So, do i have to write the toolbar manually? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I was also very confused with this. From what I understand, you are responsible for writing some of the plugins, because they might be very tied to how your application works. Lexical gives you good building blocks for that. Playground is just to show what you can achieve with Lexical and acts as a good starting point for your own plugins. |
Beta Was this translation helpful? Give feedback.
-
For posterity, the toolbar plugin used in Lexical's playground as well as in Verbum are monolithic, untested, full of hardcoded states, and generally do not even function as intended (play with the color painter for example). These should not even be referenced as examples. |
Beta Was this translation helpful? Give feedback.
I was also very confused with this. From what I understand, you are responsible for writing some of the plugins, because they might be very tied to how your application works. Lexical gives you good building blocks for that.
Playground is just to show what you can achieve with Lexical and acts as a good starting point for your own plugins.