Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Displays an accordion panel. ([Source](https://github.com/WordPress/gutenberg/tr
- **Name:** core/accordion-panel
- **Category:** design
- **Parent:** core/accordion-item
- **Supports:** color (background, gradients, text), contentRole, interactivity, shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~blockVisibility~~, ~~html~~
- **Attributes:** allowedBlocks, isSelected, openByDefault, templateLock
- **Supports:** allowedBlocks, color (background, gradients, text), contentRole, interactivity, shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~blockVisibility~~, ~~html~~
- **Attributes:** isSelected, openByDefault, templateLock

## Archives

Expand Down Expand Up @@ -147,8 +147,8 @@ A single column within a columns block. ([Source](https://github.com/WordPress/g
- **Name:** core/column
- **Category:** design
- **Parent:** core/columns
- **Supports:** anchor, color (background, button, gradients, heading, link, text), interactivity (clientNavigation), layout, shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** allowedBlocks, templateLock, verticalAlignment, width
- **Supports:** allowedBlocks, anchor, color (background, button, gradients, heading, link, text), interactivity (clientNavigation), layout, shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** templateLock, verticalAlignment, width

## Columns

Expand Down Expand Up @@ -295,17 +295,17 @@ Add an image or video with a text overlay. ([Source](https://github.com/WordPres

- **Name:** core/cover
- **Category:** media
- **Supports:** align, anchor, color (heading, text, ~~background~~, ~~enableContrastChecker~~), dimensions (aspectRatio), filter (duotone), interactivity (clientNavigation), layout (~~allowJustification~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** allowedBlocks, alt, backgroundType, contentPosition, customGradient, customOverlayColor, dimRatio, focalPoint, gradient, hasParallax, id, isDark, isRepeated, isUserOverlayColor, minHeight, minHeightUnit, overlayColor, poster, sizeSlug, tagName, templateLock, url, useFeaturedImage
- **Supports:** align, allowedBlocks, anchor, color (heading, text, ~~background~~, ~~enableContrastChecker~~), dimensions (aspectRatio), filter (duotone), interactivity (clientNavigation), layout (~~allowJustification~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** alt, backgroundType, contentPosition, customGradient, customOverlayColor, dimRatio, focalPoint, gradient, hasParallax, id, isDark, isRepeated, isUserOverlayColor, minHeight, minHeightUnit, overlayColor, poster, sizeSlug, tagName, templateLock, url, useFeaturedImage

## Details

Hide and show additional content. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/details))

- **Name:** core/details
- **Category:** text
- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), interactivity (clientNavigation), layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** allowedBlocks, name, placeholder, showContent, summary
- **Supports:** align (full, wide), allowedBlocks, anchor, color (background, gradients, link, text), interactivity (clientNavigation), layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** name, placeholder, showContent, summary

## Embed

Expand Down Expand Up @@ -494,8 +494,8 @@ Set media and words side-by-side for a richer layout. ([Source](https://github.c

- **Name:** core/media-text
- **Category:** media
- **Supports:** align (full, wide), anchor, color (background, gradients, heading, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** align, allowedBlocks, focalPoint, href, imageFill, isStackedOnMobile, linkClass, linkDestination, linkTarget, mediaAlt, mediaId, mediaLink, mediaPosition, mediaSizeSlug, mediaType, mediaUrl, mediaWidth, rel, useFeaturedImage, verticalAlignment
- **Supports:** align (full, wide), allowedBlocks, anchor, color (background, gradients, heading, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** align, focalPoint, href, imageFill, isStackedOnMobile, linkClass, linkDestination, linkTarget, mediaAlt, mediaId, mediaLink, mediaPosition, mediaSizeSlug, mediaType, mediaUrl, mediaWidth, rel, useFeaturedImage, verticalAlignment

## Unsupported

Expand Down Expand Up @@ -841,7 +841,7 @@ Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Ju

- **Name:** core/quote
- **Category:** text
- **Supports:** align (full, left, right, wide), anchor, background (backgroundImage, backgroundSize), color (background, gradients, heading, link, text), dimensions (minHeight), interactivity (clientNavigation), layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Supports:** align (full, left, right, wide), allowedBlocks, anchor, background (backgroundImage, backgroundSize), color (background, gradients, heading, link, text), dimensions (minHeight), interactivity (clientNavigation), layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** citation, textAlign, value

## Read More
Expand Down
6 changes: 2 additions & 4 deletions packages/block-library/src/accordion-panel/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@
},
"shadow": true,
"blockVisibility": false,
"contentRole": true
"contentRole": true,
"allowedBlocks": true
},
"attributes": {
"allowedBlocks": {
"type": "array"
},
"templateLock": {
"type": [ "string", "boolean" ],
"enum": [ "all", "insert", "contentOnly", false ],
Expand Down
6 changes: 2 additions & 4 deletions packages/block-library/src/column/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"width": {
"type": "string"
},
"allowedBlocks": {
"type": "array"
},
"templateLock": {
"type": [ "string", "boolean" ],
"enum": [ "all", "insert", "contentOnly", false ]
Expand Down Expand Up @@ -74,6 +71,7 @@
"layout": true,
"interactivity": {
"clientNavigation": true
}
},
"allowedBlocks": true
}
}
6 changes: 2 additions & 4 deletions packages/block-library/src/cover/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@
"type": "boolean",
"default": true
},
"allowedBlocks": {
"type": "array"
},
"templateLock": {
"type": [ "string", "boolean" ],
"enum": [ "all", "insert", "contentOnly", false ]
Expand Down Expand Up @@ -148,7 +145,8 @@
},
"filter": {
"duotone": true
}
},
"allowedBlocks": true
},
"selectors": {
"filter": {
Expand Down
6 changes: 2 additions & 4 deletions packages/block-library/src/details/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
"attribute": "name",
"selector": ".wp-block-details"
},
"allowedBlocks": {
"type": "array"
},
"placeholder": {
"type": "string"
}
Expand Down Expand Up @@ -76,7 +73,8 @@
},
"interactivity": {
"clientNavigation": true
}
},
"allowedBlocks": true
},
"editorStyle": "wp-block-details-editor",
"style": "wp-block-details"
Expand Down
6 changes: 2 additions & 4 deletions packages/block-library/src/media-text/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@
"focalPoint": {
"type": "object"
},
"allowedBlocks": {
"type": "array"
},
"useFeaturedImage": {
"type": "boolean",
"default": false
Expand Down Expand Up @@ -143,7 +140,8 @@
},
"interactivity": {
"clientNavigation": true
}
},
"allowedBlocks": true
},
"editorStyle": "wp-block-media-text-editor",
"style": "wp-block-media-text"
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/quote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
},
"interactivity": {
"clientNavigation": true
}
},
"allowedBlocks": true
},
"styles": [
{
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/quote/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function QuoteEdit( {
style,
isSelected,
} ) {
const { textAlign } = attributes;
const { textAlign, allowedBlocks } = attributes;

useMigrateOnLoad( attributes, clientId );

Expand All @@ -90,6 +90,7 @@ export default function QuoteEdit( {
templateInsertUpdatesSelection: true,
__experimentalCaptureToolbars: true,
renderAppender: false,
allowedBlocks,
} );

return (
Expand Down
Loading