Skip to content

ReactNative - Block splitting - Handle the case when the split occurs at the trailing or leading edge#10737

Merged
diegoreymendez merged 1 commit intomasterfrom
rnmobile/split-at-trailing-or-leading-edge
Oct 18, 2018
Merged

ReactNative - Block splitting - Handle the case when the split occurs at the trailing or leading edge#10737
diegoreymendez merged 1 commit intomasterfrom
rnmobile/split-at-trailing-or-leading-edge

Conversation

@daniloercoli
Copy link
Copy Markdown
Contributor

@daniloercoli daniloercoli commented Oct 18, 2018

This PR adds the code that handles the case when the split occurs at the trailing or leading edge of the field.

Also remove an hack for the Android platform in regards to cursor position.

Detailed testing steps will be provided in the other PR in the GB mobile project. Briefly:

  • Put the cursor at the end of a para block and hit enter. It should add an empty block after the current.
  • Put the cursor at the end of a para block and hit Enter. It should add a block after the current with all the content. Current block will be blank after.
  • Put the cursor in the middle of a block, and hit Enter.

Copy link
Copy Markdown
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

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

@diegoreymendez diegoreymendez merged commit 1e82348 into master Oct 18, 2018
@diegoreymendez diegoreymendez deleted the rnmobile/split-at-trailing-or-leading-edge branch October 18, 2018 15:10
antpb pushed a commit to antpb/gutenberg that referenced this pull request Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants