Full example with plugins, toolbar etc. #8
Replies: 4 comments 11 replies
-
Hi Kenneth! Thanks a lot for starting this discussion. I totally agree: a simple usage example with plugins and a toolbar has been sorely missing. So, I just created one: https://codesandbox.io/s/use-prosemirror-basic-example-nie7f. Please take a look and let me know what you think. I'll add it to the README if you think it's good. PS. Not familiar with |
Beta Was this translation helpful? Give feedback.
-
The code sandbox is a great start - thanks again for pulling this together. As someone who hasn't spent a ton of time with PM, I think it would be super helpful to put together some examples for most common use cases - TipTap does this super well imo. |
Beta Was this translation helpful? Give feedback.
-
Hi! I noted the example also doesn't support Markdown input like the example on http://prosemirror.net/ This looks nicer than prosemirror-react. Thanks for making it. |
Beta Was this translation helpful? Give feedback.
-
Hey, I extended the sandbox with support for a https://codesandbox.io/s/use-prosemirror-basic-example-extended-with-custom-font-size-mark-h5e2e |
Beta Was this translation helpful? Give feedback.
-
Hey there!
Would be super helpful to see a proper pattern for how folks generally create an editor with a set of basic plugins etc. I've played around with PM and have generally created an editor with class components, but nothing via hooks. Just not sure how to do this the "right" way.
Right now, I'm using an ExtensionManager that I initiate with the set of plugins, keymaps etc, and then reference those when using the hook:
Beta Was this translation helpful? Give feedback.
All reactions