-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using JSX tools render method #849
Comments
Hi @vpetrushenko |
Thank you for your decent answer. |
Hi @gohabereg, would you mind sharing a short example? Thank you! Or could you share your final solution with me @vpetrushenko, please? |
Hi @natterstefan !
|
@gohabereg, thank you! Will test it. (you're fast ^^) |
Hello @gohabereg, it's me again. Looks like I can render a React component, but for some reason eg. When I add it with Here's an example: https://codesandbox.io/s/solitary-night-96hzk?fontsize=14. And I am also not sure yet how to design the PS: we can discuss this on another channel, if you like. I just need to know where (eg. slack, discord or https://spectrum.chat). |
Hey @natterstefan, it seems, some of inner Editor.js handlers stops event propagation. Definitely we should look into this. |
Hi @gohabereg, mhm, looks like. Is this something easy or complicated to fix? Haven't looked into the editorjs codebase (yet) by myself to be honest. :/ I have updated the example and added both a react and plain-js example, so it can be easily compared: https://codesandbox.io/s/solitary-night-96hzk. And shall I create a new issue, because this one is actually closed? |
I created a new issue for this topic: #946. |
Thanks @natterstefan ! |
I also encounted this onClick problem! |
Hi @hata6502, you can find a solution ("workaround") here already: #946 (comment). Note: this issue is already closed, and a new one discusses this issue. |
Hi! I would like to understand if it is possible for tools
render
method to return JSX?For example, I want each paragraph of editor to be my own (already written) React component, which is basically
<div>
withcontenteditable
attribute, but also with a lots of logic inside. Ideally I would love something like this:The text was updated successfully, but these errors were encountered: