Add: Copy all content to edit site#37781
Conversation
|
Size Change: +148 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
|
@jorgefilipecosta Could you please guide me on how to find this button? I'd like to give it a try for accessibility. Thanks! |
|
gziolo
left a comment
There was a problem hiding this comment.
Code is a bit more complex than on the edit post page. I do have not enough knowledge to validate the internal implementation of getText callback, but the rest looks nearly identical.
packages/edit-site/src/components/header/more-menu/copy-content-menu-item.js
Show resolved
Hide resolved
|
Linter complains about formatting. Otherwise, with the explanation for how |
cd0bcf4 to
eea24a5
Compare
|
Hi @alexstine, this PR was merged, but I'm open to iterating on the a11y. This PR follows what happens edit-post if there is any a11y issue it affects both screens and I will gladly iterate and try to fix it. |
|
@jorgefilipecosta Works perfectly on latest trunk. Thanks! |
|
Thank you for the tests @alexstine 👍 |
Part of #21245.
Bring the Copy all content functionality to the site editor.
How has this been tested?
I verified the "Copy all content" button works well on both templates and template parts.
Screenshots