-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow the specification of blocks allowed within columns #25778
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
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
18e551b
Merge pull request #1 from WordPress/master
JesserH 1e46bec
allowedChildBlocks within columns implementation
JesserH fae4052
Add inline documentation
JesserH 2545dd1
Merge branch 'master' into pr/3
JesserH 6b2652b
Merge pull request #4 from JesserH/pr/3
JesserH db39fde
Merge branch 'master' into master
JesserH 001c2f6
Merge branch 'master' into master
JesserH 1ee9e83
Merge branch 'master' of https://github.com/WordPress/gutenberg into …
JesserH de1bd75
Fix column and columns cs
JesserH 1105f28
Fix indentation
JesserH c205d34
Remove unnessecary line
JesserH 7f9d656
Remove allowedBlocks prop for column
JesserH cf358e6
Move to single line
JesserH c8ab41f
Revert "Move to single line"
JesserH 164a4ea
Revert "Remove allowedBlocks prop for column"
JesserH 6a37644
Revert "Remove unnessecary line"
JesserH 0a1aa6f
Remove columns allowedChlidBlocks
JesserH 3c570b6
Fix columns edit cs
JesserH 07b4b8b
Merge pull request #5 from WordPress/master
JesserH bcad775
Update edit.js
JesserH 328b68a
Fix cs
JesserH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,12 @@ import { __ } from '@wordpress/i18n'; | |
import { CSS_UNITS } from '../columns/utils'; | ||
|
||
function ColumnEdit( { | ||
attributes: { verticalAlignment, width, templateLock = false }, | ||
attributes: { | ||
verticalAlignment, | ||
width, | ||
templateLock = false, | ||
allowedBlocks, | ||
}, | ||
setAttributes, | ||
clientId, | ||
} ) { | ||
|
@@ -67,6 +72,7 @@ function ColumnEdit( { | |
} ); | ||
const innerBlocksProps = useInnerBlocksProps( blockProps, { | ||
templateLock, | ||
allowedBlocks, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens when |
||
renderAppender: hasChildBlocks | ||
? undefined | ||
: InnerBlocks.ButtonBlockAppender, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.