-
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 Editor block: toolbar is no longer sticky when scrolling #53477
Comments
Hey there! Thanks for opening this issue and using the latest version of WordPress. I tried to replicate but I wasn't able to with a new classic block. Here's what I can see: Screen.Recording.2023-08-09.at.9.50.46.AM.movCan you ensure you've deactivated other plugins and test again? |
Hey there, I have again checked the following:
Can you please try enabling 4-5 plugins like Yoast, Akismet, Hello Dolly, and Jetpack and then test again in the Gutenberg/Block Editor? This seems to be a really weird issue. I have been trying to troubleshoot it for the past 10 hours. Thanks for your help! NO.edit.option.into.Classic.Block.of.Gutenburg_Code.Editor.Wordpress.v6.3.mp4 |
Thank you for this video! I'm going to flag for our test crew and keep it in the 6.3.x board until we can track it down. |
Reproduction ReportDescriptionThis report validates whether the issue can be reproduced. Environment
Steps to reproduce
Actual Results
Additional Notes
|
The Classic block editor is not displayed as modal when the editor is not an iframe. And I think the fundamental problem is because the I think the solution to this problem is to add If the classic block toolbar were expanded and became two-tiered, the block toolbar would be completely hidden. @andrewserong Do you know of any ideal approach to this problem? 🙏 |
I think Aki likely meant to mention #49978 as the cause for this. It appears the single style rule it added needs to be applied only when the editor is iframed. Besides this issue, from my testing it also broke the block supports sticky positioning. @saurabh20, I appreciate your gracious tone in reporting this issue. In looking for a fix for this, I realized it can be patched by a plugin or theme pretty easily. So in case you'd to work around this immediately here’s a plugin that did it for me. <?php
/**
* Plugin Name: Classic Block Resticky
* Description: Ensures the classic block’s formatting toolbar is sticky when custom fields are present.
*/
add_action( 'admin_footer', function() {
// Bails unless on a block editor screen
if ( ! get_current_screen()->is_block_editor() ) return;
?>
<style>
.has-metaboxes .edit-post-visual-editor { overflow: unset; }
/* Prevents overlap of formatting toolbar and the block toolbar */
.has-metaboxes .is-selected .block-library-classic__toolbar { top: 59px; }
</style>
<?php
}, 1000); Of course, you could put that into the |
@stokesman Thank you very much for this workaround 👍 Looking forward to this fix in the next release |
Nice investigation, folks!
Thanks for the ping, looks like @stokesman came up with a good fix over in #53540, which LGTM.
Sounds like that could be a good follow-up. |
As per this comment, it seems to me that we can solve this problem by displaying the classic block as a modal in the non-iframed post editor as well 👍 |
@t-hamano Please don't do this. It's bad enough being in a modal popup in the iFramed editor |
I don't see classic block resticky as a Wordpress plugin. Where do I get it? I am not a coder :( |
@einradusa, if you know how to install a plugin from a zip file then it's just a matter of putting that snippet into a php file and then making a zip of it. To demonstrate, I made gist of it and that provides a zip download. Anyway the plugin shouldn't be needed with WP >= 6.3.2. If you do have need of it, keep in mind it relies on having the custom fields panel enabled. |
Description
Hi,
I'm writing to report a bug in the WordPress block editor. When I include the 'classic block' and start writing content, the classic block menu used to be sticky when I scrolled down the viewport. However, after the 6.3 update, the classic block menu is no longer sticky. This makes it difficult to format content, as the formatting menu is no longer visible when I scroll down.
I have attached two videos that demonstrate the issue.
The first video shows the 'classic block 'menu being sticky in the earlier version (6.2.2) of WordPress. : https://bit.ly/47D7kc7
The second video shows 'classic block' menu being non-sticky in the latest version (6.3) of WordPress.: https://bit.ly/47nzQOB
I hope this issue will be fixed soon. In the meantime, I would appreciate it if you could investigate the issue and provide me with an update.
Thank you for your time.
NON-Sticky.Classic.Block.Menu.Area.in.Wordpress.6.3.mp4
Sticky.Classic.Block.Menu.area.in.Wordpress.6.2.2.mp4
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
The first video shows the 'classic block 'menu being sticky in the earlier version (6.2.2) of WordPress. :
The second video shows 'classic block' menu being non-sticky in the latest version (6.3) of WordPress.:
Environment info
The first video shows the 'classic block 'menu being sticky in the earlier version (6.2.2) of WordPress.
The second video shows 'classic block' menu being non-sticky in the latest version (6.3) of WordPress.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: