Skip to content
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 Instances Of Gutenberg On The Same Page #32

Closed
mikebronner opened this issue Jun 5, 2019 · 12 comments
Closed

Multiple Instances Of Gutenberg On The Same Page #32

mikebronner opened this issue Jun 5, 2019 · 12 comments

Comments

@mikebronner
Copy link
Contributor

This might be worth looking into once the gutenberg-js dependency is dropped?

@mauricewijnia
Copy link
Member

Yes definitely, although I'm afraid that Gutenberg is storing a lot of state in the window.wp object. So we will probably have to find a way to work around that

@mikebronner
Copy link
Contributor Author

mikebronner commented Jun 5, 2019

Perhaps we can spin up a window.wp instance for each editor, by using a unique identifier.

@mauricewijnia
Copy link
Member

mauricewijnia commented Jun 5, 2019

That's what I was thinking as well. I'll have to look into how Gutenberg references the objects internally though, I think it will be difficult if it accesses window.wp directly throughout the code.

@erralb
Copy link

erralb commented Mar 1, 2020

Hi, have you found a solution for this?
I would like to create a Gutenberg ACF field type, so it would need multiple instances

@erralb
Copy link

erralb commented Mar 3, 2020

@mauricewijnia Seems like it's possible: WordPress/gutenberg#20590

@mauricewijnia
Copy link
Member

@erralb Ah that's good news! I'll have a look at it.

Sadly it's really busy at work at the moment, so it looks like I will not have time until later this month...

@erralb
Copy link

erralb commented Mar 3, 2020

@mauricewijnia no worries, just wanted to let you know. I'll keep you updated if I'm going forward with my ACF field type!

@mirkojvc
Copy link

Hello guys what's the status on this one? It would be awesome if multiple editors could be possible. :)

@filipac
Copy link

filipac commented Oct 23, 2020

i really want this too :( trying to implement but stuck for the moment

@github-actions
Copy link

This issue has been automatically marked as stale because it has been open for 60 days with no activity.

@vijayrana-99
Copy link

Did anybody find the solution for multiple laraberg instance on the same page?

@superipey
Copy link

superipey commented Feb 11, 2024

@vijayrana-99 see my PR on VanOns/block-editor#5 to add multiple block editor in one page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants