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

Pasting at end of bold text block (but still within it) causes the pasted text to jump to the start of the block #8387

Closed
josephrocca opened this issue Aug 2, 2018 · 7 comments
Labels
[Feature] Paste [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@josephrocca
Copy link

  1. Put some text in the editor
  2. Make a bold section within that text
  3. Place your cursor at the end of the bold block, but still within it and try to paste a bit of text there.

Here's a video of the problem:
https://i.imgur.com/0ktY7LD.mp4

  • OS: Ubuntu 16.04
  • Browser: Chrome 67
  • Gutenberg: 3.4.0
@josephrocca
Copy link
Author

And here's another related bug:

  1. Put some text in the editor
  2. Make a bold section within that text
  3. Highlight part of that bold block and paste some text over it.
  4. Now try undo it (ctrl+z).

Here's what happens:
https://i.imgur.com/RpgQSPr.mp4

@designsimply designsimply added [Type] Bug An existing feature does not function as intended [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Testing Needs further testing to be confirmed. labels Aug 2, 2018
@designsimply
Copy link
Member

Possibly related: #8114.

@josephrocca
Copy link
Author

Another one: Here I'm trying to remove the first bullet point from the list. I first try backspacing the item itself, but that "explodes" the dot points into individual paragraphs. I then try to backspace at the start of the next item, but that does the same thing. Seems as though it's not possible unless I restart the list.

Thanks to all the contributors on this! Dispite a bunch of bugs, I can see that this is going to be a huge upgrade over the original editor!

@designsimply
Copy link
Member

Thank you for your feedback! I tested with WordPress 4.9.8 and Gutenberg 3.5.0 using Firefox 61.0.2 and Chrome 67.0.3396.99 on macOS 10.13.6 and was able to reproduce the first issue where pasting into the end of the inline boundary for bold text results in text being added before the boundary instead of at the end of that text as expected, but I could only see that happen in Firefox (26s) and not Chrome (33s).

Note: we are tracking the issue where backspacing over the first bullet in the list results in the rest of the list turning into paragraph blocks in #8803.

@krisgale-zz
Copy link

it's oddly comforting to know others have noticed this strange behaviour.

@ellatrix
Copy link
Member

Could this be re-tested with master or 4.0-rc?

@arunsathiya
Copy link
Contributor

Noting that I am not able to reproduce the first two behaviours, on Gutenberg 4.0.0. Tested on these two configurations:

  • WordPress 4.9.8 and Gutenberg 4.0.0 with Firefox Quantum 62.0.3 (64-bit) on macOS 10.14 - Mac OS Mojave. Video.
  • WordPress 4.9.8 and Gutenberg 4.0.0 with Google Chrome Version 70.0.3538.67 (Official Build) (64-bit). Video.

Note that in the first test, the new content is inserted both within the bold formatting and outside the bold formatting, and in both the cases the paste appears as expected.

// cc @iseulde

@mtias mtias closed this as completed Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

6 participants