You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(Android) Splitting and merging a Paragraph/Heading block doesn't work correctly #29478
While running the writing flow tests on the Mobile editor release 1.48.0 an issue was found regarding splitting and merging content in a Paragraph/Heading block.
Step-by-step reproduction instructions
Open the mobile editor
Write (or paste) a paragraph with a few lines
Set the caret by the half of the paragraph
Press Enter (Intro) to split the block into two. (if using the simulator, use the device keyboard)
Move the caret a few words.
Delete all those words until the blocks merge.
See that the original content of the first Paragraph block shows up causing the content to be duplicated.
Expected behaviour
The two blocks should merge without any content duplication.
Actual behaviour
After emerging the two blocks the original content of the first Paragraph block returns causing content duplication.
changed the title [-](Android) Splitting and merging a Paragraph block doesn't work correctly[/-][+](Android) Splitting and merging a Paragraph/Heading block doesn't work correctly[/+]on Mar 2, 2021
@geriux I was taking a look at this and don't have a solution yet but I did find some simpler steps to reproduce:
Paste text
move cursor halfway and use emulator keyboard to press enter
Switch to HTML mode
Notice incorrect text
*Note if you use those same steps with your computers physical keyboard controlling the emulator to press enter, the correct text will show in html mode.
Activity
geriux commentedon Mar 2, 2021
This is a regression from #28505.
[-](Android) Splitting and merging a Paragraph block doesn't work correctly[/-][+](Android) Splitting and merging a Paragraph/Heading block doesn't work correctly[/+]cameronvoell commentedon Mar 3, 2021
@geriux I was taking a look at this and don't have a solution yet but I did find some simpler steps to reproduce:
*Note if you use those same steps with your computers physical keyboard controlling the emulator to press enter, the correct text will show in html mode.
geriux commentedon Mar 5, 2021
Reopening since the first approach to fix it didn't work.
geriux commentedon Mar 8, 2021
I just reverted the PR I made to try to fix it but ended up not working.