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

Should it be possible to insert a slide block into a slide block? #19

Open
bobbingwide opened this issue Nov 5, 2019 · 3 comments
Open

Comments

@bobbingwide
Copy link

I created a new presentation slide and inserted a Slide block into the existing slide.
Should I have been prevented from doing so?

<!-- wp:slide/slide -->
<section class="wp-block-slide-slide"><!-- wp:heading {"level":1} -->
<h1>Slide without slide</h1>
<!-- /wp:heading -->

<!-- wp:slide/slide -->
<section class="wp-block-slide-slide"><!-- wp:paragraph -->
<p>Slide within Slide</p>
<!-- /wp:paragraph --></section>
<!-- /wp:slide/slide --></section>
<!-- /wp:slide/slide -->
@bobbingwide
Copy link
Author

BTW: I was being particularly dumb when I did this.
At the time I hadn't actually realised how to create a slide show.
I had created multiple presentations with one slide per CPT.
It was not obvious to me that I needed to use the Slide block multiple times inside a presentation.

@ellatrix
Copy link
Member

ellatrix commented Nov 6, 2019

That should not be possible indeed. There's currently no API in the block editor to prevent certain blocks inside a particular block, but I'll find a way around it. :)

@bobbingwide
Copy link
Author

Will you have to get a list of allowedBlocks and remove yours?
Or is it time for a PR for disallowedBlocks?
WordPress/gutenberg#7845

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

2 participants