Skip to content

Commit

Permalink
use allowedFormats instead of formattingControls
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 20, 2021
1 parent aec0e94 commit 26db3c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/query-pagination-next/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function QueryPaginationNextEdit( {
aria-label={ __( 'Next page link' ) }
placeholder={ placeholder }
value={ label }
formattingControls={ [ 'bold', 'italic' ] }
allowedFormats={ [ 'core/bold', 'core/italic' ] }
onChange={ ( newLabel ) =>
setAttributes( { label: newLabel } )
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function QueryPaginationPreviousEdit( {
aria-label={ __( 'Previous page link' ) }
placeholder={ placeholder }
value={ label }
formattingControls={ [ 'bold', 'italic' ] }
allowedFormats={ [ 'core/bold', 'core/italic' ] }
onChange={ ( newLabel ) =>
setAttributes( { label: newLabel } )
}
Expand Down

0 comments on commit 26db3c0

Please sign in to comment.