-
Notifications
You must be signed in to change notification settings - Fork 77
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
Multiple EditorJs in the DOM #11
Comments
@hasufell Hi! First of all, thanks for your interest! 😍 It's difficult to understand. can you reproduce on codesandbox or others? |
Check out this: https://codesandbox.io/s/react-editor-js-elilp It seems it has something to do with the hidden attribute:
|
@hasufell Thanks! I'll check it. sorry. (feel free to submit pr whenever you want) |
I thought maybe it's the It appears there must be some instance-sharing going on. |
IMO, this should be done automatically and the ids be randomized by default. Only |
I don't think so. Thanks! |
Why not? API-wise this is neither documented properly, nor intuitive, nor what you would expect from most react libraries. |
Thanks for your good opinion. on second thought, you are right. I'll change |
Sure, I'll try to write something up. |
Not sure if this in line with the overall code base, as I haven't looked at this project's code prior to fiddling with this, but here's one approach. This adds a constructor to add a holderID property that gets populated wherever the hard-coded "editor-js" had appeared. |
resolved (#76) |
It seems I can only have one. I have virtual tabs where each of the sub-doms are hidden.
Only the first EditorJs shows.
The text was updated successfully, but these errors were encountered: