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

[Mobile] Fix caret position after inline paste - after selection refactor #15701

Merged
merged 5 commits into from
May 30, 2019

Conversation

mkevins
Copy link
Contributor

@mkevins mkevins commented May 17, 2019

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: #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: wordpress-mobile/gutenberg-mobile#828 , specifically, when inline content is pasted.

Companion PR.

How has this been tested?

This has been tested using the steps here:
wordpress-mobile/gutenberg-mobile#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.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@mkevins mkevins added [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Mobile Web Viewport sizes for mobile and tablet devices labels May 17, 2019
@mkevins mkevins requested a review from Tug May 17, 2019 12:57
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.

LGTM 👍

@mkevins mkevins merged commit 992a302 into master May 30, 2019
@mkevins mkevins deleted the fix/caret-position-after-inline-paste3 branch May 30, 2019 07:40
@youknowriad youknowriad added this to the Gutenberg 5.9 milestone Jun 7, 2019
@gziolo gziolo added Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) and removed Mobile Web Viewport sizes for mobile and tablet devices labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants