-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mobile] Copy/Paste improvement #27242
Conversation
Size Change: -983 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and this works well 🎉
I had a few questions about your approach.
# Conflicts: # packages/block-editor/src/components/inserter/menu.native.js
59c3f87
to
b71e852
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, I had a few minor comments
packages/block-editor/src/components/block-mobile-toolbar/block-actions-menu.native.js
Outdated
Show resolved
Hide resolved
… comment to explain getItems in the inserter menu
…e to handle clipboard change
Description
This PR adds a
Clipboard
context instead of using thecore/editor
store, I ended up not using the actual clipboard of the device for now because the current implementation checks the clipboard when trying to add a new block or opening the toolbar options, this on iOS wouldn't be a good approach since you'll see a prompt notice about using the device clipboard:It also changes how the
Notice
component stores its data, it was using thecore/editor
store but now it'll usecore/notices
.These changes are in favor of the issue with dependencies in the
Inserter
andBlockMobileToolbar
.How has this been tested?
Steps to test
Copy / Paste after block
Cut block
Duplicate block
For the above actions make sure:
Screenshots
N/A
Types of changes
Checklist: