Displaying Inline Toolbar
-
Hey Guys,
I’m building a custom block, and I’m having trouble getting the inline toolbar to display when focusing on a RichText field. This seemed to work before one of the more recent Gutenberg updates.
With my current code, the inline toolbar is displaying, but it’s always displayed, even before focusing on the field. I would like the toolbar to display only when the field has been focused on.
I’m coding in ES5:
el( blocks.RichText, { tagName: 'p', placeholder: i18n.__( 'Write your content...' ), style: { color: attributes.textColor }, value: attributes.content, onChange: function( newContent ) { props.setAttributes( { content: newContent } ); }, focus: focus, onFocus: props.setFocus, isSelected: props.isSelected, inlineToolbar: true, } ),
I’m still getting familiar with coding in ES5, so any help would be appreciated.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying Inline Toolbar’ is closed to new replies.