-
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
Page jumps to the top each time a block is selected or added #21622
Comments
Hello, thank you for the report! @youknowriad do you know if this ticket will be fixed by #21460? |
I think so, @violetlynx Can you confirm that the last Gutenberg plugin update fixes this for you? |
Hi! Yes, after I've installed the Gutenberg plugin there is no jumps to the top. Although there is one other problem with switching between html and visual (the page crashes) unless I use a roundabout way of doing it. |
Can you clarify what you mean by "crashes"? Are you getting any error messages you can share here? |
Thanks @violetlynx. Can you click the "Copy error" button, and paste the contents here? That will help debugging. |
To clarify, this doesn't happen when I use build-in editor, only when I use Gutenberg plugin. |
Thank for the added info. I was unable to glean what might have caused that particular crash, I even tried retracing your steps with the foogallery plugin, but was unable to reproduce. Are you saying that you're using the custom HTML block and it's switching between the tabs that causes the crash? If that's the case then you might have entered some HTML that broke things. You don't have to share it in case it's sensitive, but if you could say it was an embed or what you were trying to accomplish, that might help. |
Crash happens when I try to swich back from html into visual. |
Thanks for your patience. When you say this:
What exactly do you mean? Do you mean going into this code editor? Or do you mean this one? In both cases, I can't get it to crash, using the classic block. I wanted to note that you can colorize text using the normal Paragraph block: Let me know if that helps. |
In my previous message the fist screen was to show you which particular block I've used (it is in "formatting" sub-menu and called "classic"). As for colors, yeah, I know that, but I don't want to do color change for several lines in several hundreds of blocks, so I just copy a "template" where all colors and formatting is made as I want it and just change few words, because for some reason when I copy text from one page into another in visual mode it looses all colors. |
One more addition. It looks like it doesn't matter at all what I enter into the block, because even if I entered just a simple string of letters when I try to change from HTML mode into visual mode the page crashes. |
I'm very much unsure what might cause this crash for you, I simply can't reproduce. Is your WordPress version up to date? Are all your plugins up to date? You could try a different browser, you could try disabling plugins one by one to try and figure out what might be causing it. It could even be a browser extension. Regarding this:
I'll create a new ticket to note that copy pasting from one paragraph to another should not strip out colors. That's definitely a bug. In the mean time, and in absense of us figuring out what crashes the editor, you can do this: That is, you create your layout as you want it, colors and everything. Then you save those blocks as reusable. Now whenever you need those colors again, you can insert the reusable block you saved, convert it to a regular block, and edit it. Hope that helps. |
I created #21670 for copy pasting text color. |
Thank you for your help! I understand it is difficult to find a bug when you can't check my end of things. I'll try to use reusable blocks and see if that will solv my immediate problem. Although the first thing - the jumping to the top in build-in editor - is more important (basically that is the only thing that prevents me from using it as I had no other problems their except loosing colors when copy things, but that is, as I understand, a bug that affect editor in general). |
Thank you. Because the initial ticket, jumping, was fixed by updating the plugin, I'm going to close this one as addressed. If the crash keeps happening in next versions of the plugin or WordPress, or you find other steps to reproduce, come back and comment or open a new ticket and we'll look again. |
Hi!
After I've added enough blocks (all of them are images with links to another pages) that they can't be displayed in one window and there is a need to scroll down to view blocks at the bottom of the page, every time I choose a block to edit or add another one the page jumps to the top.
I've tried deactivating basically all plugins but that haven't affected the issue.
Installing Gutenberg plugin solved the problem, but with the default editor it happens how I've described above.
Here is an example of the content (I show just two blocks, but the page contain several dozens of them and it should have a lot more when I am done):
To reproduce
Steps to reproduce the behavior:
Also if I choose a block and than choose HTML-editor other images just stay on top of the code so this mode is completely unusable. Here is a screenshot of how is looks:
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: