Gutenberg 18.4 This update brings several highlights:
- The grid block function is greatly upgraded for smoother operation and more efficient design.
- A series of convenient keyboard shortcuts have been added to make editing easier and more convenient.
- Extender features are more useful and offer more customization options.
In addition, numerous pre-existing issues have been fixed, including some common bugs, accessibility issues, and performance bottlenecks for a smoother, more stable experience.
Visual grid layout
The Grid Layout Visualization feature is no longer in the experimental stage, it is now officially available to all users! Easily view the grid's column and row outlines and get your content to span those grid lines perfectly with a simple drag-and-drop handle action. (#61640)
Grouping blocks using keyboard shortcuts
Many design tools have long supported quick grouping of elements, but in Gutenberg this feature has been a plan. The good news is that from now on, it's easy to group multiple selected blocks by simply pressing ⌘ Command + G (on MacOS) or Ctrl + G (on Windows). The addition of this feature definitely makes the Gutenberg experience more convenient and efficient. (#46972)
Define custom aspect ratio presets using theme.json
![图片[1]-Gutenberg 18.4 改进网格块可视化操作,分组快捷键一键到位-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052701554510.png)
Is it boring for you to crop images or set up layouts with the same aspect ratio every time? Here's the good news! Now, you can define exclusive aspect ratio presets in the theme according to your own preferences, making image cropping and layout more personalized and flexible. (#47271)
In theme.json, use thesettings.dimensions.aspectRatiosoption sets the new aspect ratio. As with other presets, default options are always available. To remove them and use only your own options, set thesettings.dimensions.defaultAspectRatiosThe option is set tofalseThe
{
"version": 3, "settings": {
"settings": {
"dimensions": {
"aspectRatios": [
{
"name": "Super Ultra-Wide - 32:9", "slug": "32-9", [ {
"slug": "32-9", "ratio": "32/9", {
"ratio": "32/9"
}
]
}
}
}
Other Highlights
If you want your toolbar to be more powerful and personalized than BlockToolbar, you can now easily create your own custom toolbar using the new BlockPopover component. (#61529)
For developers who need to simulate rich text paste behavior in your custom blocks, Gutenberg now offers a very handy supports.splitting Block setting. When this setting is enabled, when pasting content within a block, Gutenberg automatically splits your block into two parts, inserts the content into them, and then merges the two parts together for a smoother operation. (#54543)
For theme developers, the list block now has a specializedwp-block-listclass, which means you can easily add unique styling to this block to make it visually distinguishable from other lists. (#56469)
![图片[2]-Gutenberg 18.4 改进网格块可视化操作,分组快捷键一键到位-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052702024279.png)
Link to this article:https://www.361sale.com/en/10574/The article is copyrighted and must be reproduced with attribution.




















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments