You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a block which leverages some wordpress/core blocks. When a user drops my block onto the page I want to disable all toolbars for the template items. Ie: When a user tries to modify the core/heading block inside my block, I only want them to beable to control the content.
In the example below, I have the typography set to uppercase
I've tried playing around with templateLock, but that only appears to work at the higher level, which disables ALL controls for my block entirely. I was hoping there was a way where I could disable toolbars on a case by case basis, just like in the example below
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All -
I'm building a block which leverages some wordpress/core blocks. When a user drops my block onto the page I want to disable all toolbars for the template items. Ie: When a user tries to modify the core/heading block inside my block, I only want them to beable to control the content.
In the example below, I have the typography set to uppercase
I've tried playing around with templateLock, but that only appears to work at the higher level, which disables ALL controls for my block entirely. I was hoping there was a way where I could disable toolbars on a case by case basis, just like in the example below
Beta Was this translation helpful? Give feedback.
All reactions