-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fixes pasting in heading blocks. #675
Conversation
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.
This is working great on iOS.
Sorry @diegoreymendez if the review process took so long. |
@daniloercoli - No worries! This is ready for another look. |
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.
Works as expected!
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.
LGTM!
Description:
Fixes pasting in header blocks, when the paste operation would result in a block split.
Details:
In order to achieve this I copied the splitting code from the paragraph block into the heading block.
There's a chance to unify code there, but I have purposely not stepped into that, as we would need to make sure all blocks that use rich text can use the same code (title?), or find a solution that would let us customize it for some blocks (this is probably what we'd want to do).
Related PRs:
Gutenberg PR: WordPress/gutenberg#14118
Testing: