Skip to content
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

Fix caret position after inline paste - after selection refactor #995

Merged
merged 3 commits into from
May 30, 2019

Conversation

mkevins
Copy link
Contributor

@mkevins mkevins commented May 17, 2019

This PR updates the gutenberg reference to bring in changes from the companion PR.

Note

This PR is part of a series of PRs to fix the same issue. Most recently, a change in ownership of selection state has brought about an important refactor which regressed the previous PR before it was merged: WordPress/gutenberg#15552. The solution there is no longer viable, but the unit test in that PR may still serve as a helpful tool to prevent more regressions.

Description

This PR is intended to fix a regression of part of this issue: #828 , specifically, when inline content is pasted. This will resolve #903.

How has this been tested?

This has been tested using the steps here:
#828 (comment)

Types of changes

This is a bug fix, but currently only resolves a part of the original issue. It serves as an incremental improvement. Also, this PR renames some local variables for clarity.

@mkevins mkevins requested a review from Tug May 17, 2019 13:10
@mkevins mkevins added this to the v1.6 milestone May 17, 2019
@hypest
Copy link
Contributor

hypest commented May 27, 2019

Bumping to next milestone as this still needs a review and it's not a blocker for the v1.6 release.

@hypest hypest modified the milestones: v1.6, v1.7 May 27, 2019
Copy link
Contributor

@Tug Tug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mkevins mkevins merged commit 904a027 into develop May 30, 2019
@mkevins mkevins deleted the fix/caret-position-after-inline-paste3 branch May 30, 2019 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix caret position after inline paste - is broken
3 participants