-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Classic Block - Insert Media Icon - New Upload jumps to top #10509
Comments
Bug is also in Gutenberg 4.1 |
Thank you for the report! I'm closing this issue now because I have just tested with WordPress 4.9.8 and Gutenberg 4.2.0-rc.1 and did not see the problem happen there. (22s) I used Firefox 63.0 on macOS 10.13.6 for testing. If you are still seeing the problem either after testing with 4.2.0-rc.1 or using the 4.2 version after it is released, please let me know and we can re-open! |
The problem persists with 4.9.8 and with this Gutenberg version: https://github.com/WordPress/gutenberg/releases/download/v4.2.0-rc.1/gutenberg.zip insert an image, write a word, insert next image and this image will be on top and not below. |
It would be awesome, if this could be set to your next milestone. This is a strange bug and make the block classic useless for inserting more than one image. |
I think I found the problem. It's the (re)inserting of the content every time Trying few workarounds but because the above runs quite often, and because we save the content every time on editor Looking at other possible workarounds as this is really annoying bug, especially when the content in the Classic Block is longer. |
@azaozz Disabling the "reiniserting" doesn't fix the issue for me. Any more insights on this? The workaround for now is to insert an image block between two classic blocks if needed but would be good to fix anyway. |
I disagree, this is no solution. Non experienced users should have the chance to learn the block editor bit by bit. The block classic should work to 100 percent like the classic editor does now. And imo, the block editor will be the most used block on start. And an image block is no inline image. |
Worth nothing that you can inline images into paragraph blocks as well. |
Inline images with very poor functions. You can't align the image, you can't link the image or edit it. When you align it, you will align the text too.
|
@youknowriad we've been looking into this with @iseulde. Disabling the "reiniserting" doesn't fix it completely, still need to add the TinyMCE way of keeping the cursor position, i.e. do the We'll get to the bottom of this! :) |
Thanks for the updates, let's get this in as soon as we can. |
@azaozz I create a custom classic editor component with custom media button. I use
|
@La-Geek apologies for closing the issue so soon before. I did test and couldn't see the problem happening with 4.0-rc.1 at that time, but then I saw that earnjam re-opened. I re-tested again just now with WordPress 4.9.8 and Gutenberg Another workaround idea is to insert and image and then cut and paste it into the location where you want the image to appear (this is just a potential workaround to use while the bug is being worked on). |
No problem @designsimply 👍 However such workarounds are no good idea. Unexperienced users will work with the block classic (imho) and learn the other blocks bit by bit. I dislike to teach my client to copy and paste images (and how this should work with images from media manager)? |
Please test #12393 if possible, with images and with other (custom) TinyMCE plugins that insert content. Will probably fix or improve other issues when inserting or updating content in the editor. @turtlepod seems this will work, but why replace the "standard" way of inserting images? The biggest problem here is that the Classic Block looses the caret position on blur, and on top of that the whole editor content is getting refreshed. This is pretty similar to editing text in a textarea: imagine you do select-all, copy, delete all, paste. Of course the caret position is gone after that :) |
Unfortunately I am unable to test it. I don't have a locale installation, grunt etc. I test with a .htaccess protected installation (online) and Gutenberg 4.5.1. The image still is jumping. I did a second "test" and copied the folder classic into the folder "build", path wp-content/plugins/gutenberg/build The images still is jumping. No idea, if my test workaround made any sense :) |
@La-Geek ah, I'm sorry, I should have explained better. To be able to test the PR you need to "build" Gutenberg. For that you would need the dev. environment, git, node.js, npm, etc. IMHO not worth it setting it up if you're not coding. On the other hand, if you would like to test PRs and get more involved in the development (and know your way with computers), setting a dev. environment shouldn't be hard. Here is a guide: https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md. |
@mtias This is a breaking issue for the classic block, which is meant to be the entry point for users learning to work in the new system. The functionality of this block is crucial for a smooth launch. How can this possibly be justified as a 5.0.1 fix? By that time, thousands of users will have had their first experience of the new editor be that it can't even add a simple image properly. Launching without a fix for this issue in place is just asking for community backlash. |
@gschoppe Hit the nail square on the head. I am one of the thousands (dare I speculate hundreds of thousands?) of users that experienced this. Allowing a general release with this kind of bug is a travesty. I think this is going to generate a HUGE backlash, as basically it is now impossible to edit existing posts/pages with images using Gutenberg. |
When you insert a media file, e. g. an image with the insert media icon
then hit return
and insert a second image the same way, the new image jumps to top, But it should be below the first image.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: