diff --git a/editor/hooks/copy-content/index.js b/editor/hooks/copy-content/index.js index f02000c34749a9..9ad0d454a1f906 100644 --- a/editor/hooks/copy-content/index.js +++ b/editor/hooks/copy-content/index.js @@ -29,9 +29,10 @@ const Enhanced = compose( withState( { hasCopied: false } ) )( CopyContentButton ); +const cached = ; + addFilter( 'editor.EditorActions.children', 'core/copy-content/button', - ( children ) => - [ ...children, ] + ( children ) => [ ...children, cached ] );