Jungwoo-An / react-editor-js

โš›๏ธ๐Ÿ“The unofficial editor-js component for React
https://codesandbox.io/s/react-editor-js-v2-34bfl
MIT License
945 stars 77 forks source link

Pass Props From Editor.js to Custom Block #144

Closed PurplePineapple123 closed 2 years ago

PurplePineapple123 commented 2 years ago

How do props get passed from the Editor.js component to a custom created block?

I have an editor.js component and also created a custom checklist block. I'm trying to pass props containing the url params props.match.params.id. However, I'm unable to pass props through editor.js to the custom child block normally ( props={props}).

Any idea how to make this work? Thanks!

Jungwoo-An commented 2 years ago

@PurplePineapple123 Hi! First of all, thanks for your interest! ๐Ÿ‘‹

I think you should create custom tools for custom block.

Thanks!