• Resolved nbspjr

    (@nbspjr)


    Hi,
    thank you for the great plugin.

    I noticed a little issue: once you added an image or image gallery, you are unable to edit it because buttons are hidden. It happens because z-index of buttons is less than z-index of the editor’s layer.

    Also, there is a scrolling issue: if I alter z-index of those buttons, they are visible. But if I close that window by either clicking the X button or “Save and close” the buttons remain visible. Also, visible buttons will be scrolled with the page below the editor’s window, while the editor is not scrolled at all, so buttons just fly around. I added a little and dirty JS hack to hide the buttons when the window is scrolled, but I’m sure there’s much better solution to that.

    Here is what I currently use:

    add_action( 'admin_head',               'fix_widget_gallery', 20 );
    function fix_widget_gallery() {
    	global $pagenow;
    
    	if ( !empty($pagenow) && 'widgets.php' == $pagenow )
    		print '
    		<style type="text/css">div#wp_editbtns, div#wp_gallerybtns {z-index: 160001;}</style>
    
    		<script type="text/javascript">
    			jQuery(document).on("click", "#wp-editor-widget-container a.button-primary, #wp-editor-widget-container a.close", function(){
    				jQuery("div#wp_editbtns, div#wp_gallerybtns").hide();
    			})
    
    			jQuery(window).scroll(function(){
    				jQuery("div#wp_editbtns, div#wp_gallerybtns").hide();
    			});
    		</script>
    		';
    }

    https://www.ads-software.com/plugins/wp-editor-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author feedmeastraycat

    (@feedmeastraycat)

    Sorry for the late reply. I don’t get notified on these posts (I don’t know why) and I forgot to check.

    I’m pushing a fix for this now. I’ve just lowered the z-index a bit. Thanks for the headsup!

Viewing 1 replies (of 1 total)
  • The topic ‘Edit media/gallery buttons are not shown’ is closed to new replies.