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

Block inspector behaves erratically when using multiple editors #220

Open
vonloxx opened this issue Apr 3, 2023 · 7 comments
Open

Block inspector behaves erratically when using multiple editors #220

vonloxx opened this issue Apr 3, 2023 · 7 comments

Comments

@vonloxx
Copy link

vonloxx commented Apr 3, 2023

When using multiple editors, the block inspector component behaves erratically:
block-inspector-1

@johngodley
Copy link
Member

You will need to design your system so this cross over is avoided.

@vonloxx
Copy link
Author

vonloxx commented Apr 4, 2023

ouch 😓 But it happens because the toggle actions uses the same interface store, maybe?

@johngodley
Copy link
Member

Undoubtedly it is because of shared state. However, it is difficult to fully separate this as Gutenberg is just not designed for that kind of thing. Attempts have been made and some of these used to work well, but changes to Gutenberg along the way have meant that some things do bleed through. Is your example above a real thing or just theoretical?

@vonloxx
Copy link
Author

vonloxx commented Apr 5, 2023

Yep, I understand that. The examples above are taken from this repository storybook (Multiple editors) with inspector enabled.
Anyway, I'll try to come up with something to overcome, at least this issue.

@johngodley
Copy link
Member

Ah ok, yes. It's a moving target so things will change. Hopefully full isolation can be brought back, but currently it's tricky.

@hawkidoki
Copy link

hawkidoki commented Feb 5, 2024

Hello!

I can report the same issue when using multiple instances of the Isolated Block Editor on the same page (within WordPress).

Did you find any workaround @vonloxx?

Thanks!

@vonloxx
Copy link
Author

vonloxx commented Feb 6, 2024

@hawkidoki Actually I ended using the block editor component (wrapped on my own components) since a lot of work was done so the block editor can work in a more "isolated" way. More info at WordPress/gutenberg#53874

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

No branches or pull requests

3 participants