Came up with a great Typescript+React Tool factory for Editor.js #2324
mmmeff
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I NEED this functionality. I'm more than ready to implement each tools by myself if needed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, I wasn't really having a lot of luck with the documentation around rendering React components in Editor.js, and the guides out there were all either JS-centric (not Typescript) or confusing/poorly-written. I came up with this handy little utility that I really wish was built into EditorJS.
This tool allows you to take any React component that implements the
ReactEditorToolProps
interface for its Props and spits out an Editor.js-compatible tool block for it.Check it out, lemme know what you think!
https://gist.github.com/mmmeff/5c60423a6ae564d6e485587f6621e169
Beta Was this translation helpful? Give feedback.
All reactions