Skip to content

Commit f9ad7ab

Browse files
committed
fix block toolbar not showing when text block is set as default block
1 parent 0d281a0 commit f9ad7ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/block-components/typography/attributes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ export const addAttributes = ( attrObject, selector = '.stk-content', options =
8585
multiline,
8686
default: defaultText,
8787
__unstableMultilineWrapperTags,
88+
/**
89+
* Starting from WP 6.9, the toolbar gets hidden when the text block is set as the default block.
90+
* Setting the role to 'content' will prevent the toolbar from being hidden.
91+
* see https://github.com/WordPress/gutenberg/pull/70897
92+
*/
93+
role: 'content',
94+
__experimentalRole: 'content',
8895
},
8996
} : {} ),
9097
...( hasTextTag ? {

0 commit comments

Comments
 (0)