From 794eec2190f46e906a9fb9cf959f9fdd77741233 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 6 Dec 2024 09:33:10 +0400 Subject: [PATCH] Navigation: Enable all non-interactive formats (#67585) Co-authored-by: Mamaduka Co-authored-by: getdave Co-authored-by: talldan Co-authored-by: carolinan Co-authored-by: shimotmk --- packages/block-library/src/navigation-link/edit.js | 6 ------ packages/block-library/src/navigation-submenu/edit.js | 6 ------ 2 files changed, 12 deletions(-) diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index 9e2e171975570f..39073b848d3ca8 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -527,12 +527,6 @@ export default function NavigationLinkEdit( { ) } placeholder={ itemLabelPlaceholder } withoutInteractiveFormatting - allowedFormats={ [ - 'core/bold', - 'core/italic', - 'core/image', - 'core/strikethrough', - ] } /> { description && ( diff --git a/packages/block-library/src/navigation-submenu/edit.js b/packages/block-library/src/navigation-submenu/edit.js index 261b2ad8502fb8..c89eadf1cb589e 100644 --- a/packages/block-library/src/navigation-submenu/edit.js +++ b/packages/block-library/src/navigation-submenu/edit.js @@ -461,12 +461,6 @@ export default function NavigationSubmenuEdit( { aria-label={ __( 'Navigation link text' ) } placeholder={ itemLabelPlaceholder } withoutInteractiveFormatting - allowedFormats={ [ - 'core/bold', - 'core/italic', - 'core/image', - 'core/strikethrough', - ] } onClick={ () => { if ( ! openSubmenusOnClick && ! url ) { setIsLinkOpen( true );