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

Any Copy/Cut operation doesn't work throughout Visual Editor #12506

Closed
afercia opened this issue Dec 1, 2018 · 7 comments · Fixed by #12543
Closed

Any Copy/Cut operation doesn't work throughout Visual Editor #12506

afercia opened this issue Dec 1, 2018 · 7 comments · Fixed by #12543
Assignees
Labels
[Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release

Comments

@afercia
Copy link
Contributor

afercia commented Dec 1, 2018

Regression in 4.6.0 master.

To test, make sure you have latest master (at the time of writing it's 4.6.1 68367b4) or at least 4.6.0.

  • go in any post
  • select some text in a block editable area, either with mouse or keyboard doesn't matter, and try to paste it in another block or in an external editor
  • nothing happens (if you have previous content in your clipboard, that will be pasted)
  • try to cut text: nothing happens
  • try also in the post title: same as above
  • try also with an embed, for example a vimeo embed: paste https://vimeo.com/22439234 then edit it e.g. remove a few numbers, copy, paste it: the previous full URL get pasted
  • try to cut the vimeo URL: nothing happens
  • try even to select some text in the editor UI, outside of any block, for example the paragraph block description:

screenshot 2018-12-01 at 17 49 27

  • copy and paste it: same as above
  • switch to Code Editor mode: everything works normally

Basically any basic Copy / Cut operation in the Visual Editor is currently broken.

Seems to me this commit 3ce3f03 made yesterday – Friday, Nov 30, 2018 – (see #11851) with the changes to the CopyHandler component, is responsible for this breakage.

@afercia afercia added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release labels Dec 1, 2018
@afercia
Copy link
Contributor Author

afercia commented Dec 1, 2018

I'd like to add some considerations. While this regression is probably easy to fix, it's worth considering this kind of things shouldn't happen at this point of the release cycle.

There's some disagreement between the most active contributors about the Gutenberg development process in relationship with the WordPress release process. Personally, I'd tend to think that at this point of the release cycle Gutenberg should follow the same rules that WordPress follows in the release cycle.

WordPress is now in Release Candidate stage: that means no commits should be made other than the ones necessary to fix bugs reported against it (or small changes related to documentation). When bugs reported against a RC get fixed, a new RC should be released.

Gutenberg is the only, big, relevant feature of WordPress 5.0. At this point of the release cycle, it should be considered part of WordPress and subject to same rules. Instead, in the last days a relevant amount of commits has been merged in Gutenberg.

Honestly, with all the respect due to the hard work and dedication of everyone involved in this project, I don't see how WordPress 5.0 can be considered in a "Release Candidate" stage while dozens of commits get merged in a big piece of software that is part of it. Seems to me this process is not wise, unreasonable, and prone to introduce other regressions. WordPress has a responsibility towards 32% of the Web and millions of users. I'd kindly invite everyone to reconsider the current process, stop introducing changes during Release Candidate, and consider a decent amount of time to test deeply this software before release.

@gziolo
Copy link
Member

gziolo commented Dec 2, 2018

WordPress is now in Release Candidate stage: that means no commits should be made other than the ones necessary to fix bugs reported against it (or small changes related to documentation). When bugs reported against a RC get fixed, a new RC should be released.

There is 4.6 release branch created for WordPress 5.0 RC cycle. master is meant to contain code planned for WorPress 5.0.1 release. In other words, this won't affect RC by no means.

Seems to me this commit 3ce3f03 made yesterday – Friday, Nov 30, 2018 – (see #11851) with the changes to the CopyHandler component, is responsible for this breakage.

Have you tried the code before this commit? Which browser were you testing with?

@afercia
Copy link
Contributor Author

afercia commented Dec 2, 2018

Have you tried the code before this commit? Which browser were you testing with?

Of course yes, I've reverted to the previous commit. Tested on two different machines, mac and windows, in Chrome and Firefox. Really not related to browsers :) Also removing <CopyHandler /> from visual editor makes things work again (of course that's just for testing purposes).

@afercia
Copy link
Contributor Author

afercia commented Dec 2, 2018

Re: the version, my mistake: I see now this regression is not in 4.6.0, it's in master.

However, several commits have been merged in 4.6.0 since November 23rd (first RC day) so the general consideration still stands.

@gziolo gziolo self-assigned this Dec 2, 2018
@gziolo gziolo modified the milestones: 4.7, WordPress 5.0.1 Dec 2, 2018
@gziolo
Copy link
Member

gziolo commented Dec 2, 2018

However, several commits have been merged in 4.6.0 since November 23rd (first RC day) so the general consideration still stands.

Once again, we are not using master for RC anymore. WordPress RC2 contains what we released in Gutenberg 4.5 + cherry-picked commits for 4.6 and 4.6.1 as listed on make.wordpress.org.

I think I know why it has regressed, I will fix tomorrow. Thanks for reporting it.

@gziolo
Copy link
Member

gziolo commented Dec 3, 2018

Opened #12543 with a proposed fix.

@davisshaver
Copy link
Contributor

Ran into this today. I agree with @afercia's comments (couldn't believe this was an actual regression and I thought my computer was broken) but think we might just need a new way to pin our builds to the next release. I wonder if we might want something like @danielbachhuber's nightly builds but for the branch linked to the next release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants