Forum Replies Created

Viewing 5 replies - 31 through 35 (of 35 total)
  • If you want to temporary solve the problem, uncheck Enable full-height editor and distraction-free functionality. in the Screen Options.

    The editor-expand.js is the file which drive this new functionality.

    Hello Marko,

    I don’t know if it may help you but I found the cause of the problem.

    When you toggle a box, a postbox-toggled event is fired. This event is then catched by an event handler which is declared in file wp-admin/js/editor-expand.js at line 640.

    // Adjust when collapsing the menu, changing the columns, changing the body class.
    			$document.on( 'wp-collapse-menu.editor-expand postboxes-columnchange.editor-expand editor-classchange.editor-expand', adjust )
    				.on( 'postbox-toggled.editor-expand', function() {
    					if ( ! fixedSideTop && ! fixedSideBottom && window.pageYOffset > pinnedToolsTop ) {
    						fixedSideBottom = true;
    						window.scrollBy( 0, -1 );
    						adjust();
    						window.scrollBy( 0, 1 );
    					}
    
    					adjust();
    				}).on( 'wp-window-resized.editor-expand', function() {
    					if ( mceEditor && ! mceEditor.isHidden() ) {
    						mceEditor.execCommand( 'wpAutoResize' );
    					} else {
    						textEditorResize();
    					}
    				});

    This code adjusts the editor width and, because it’s set to display: none, it set the width to 0px on the div#wp-content-editor-tools… which breaks the editor. I think the logic which resize the editor is in the textEditorResize function which is called by the adjust function called by the previous piece of code.

    Maybe firing this postbox-toggled event when the tab with the editor is activated may solve the problem?

    jQuery(document).trigger('postbox-toggled')

    Simply resizing the window also repair the editor… so there is probably another event which may trigger the resizing of the editor

    Thread Starter tristanleboss

    (@tristanleboss)

    Ok, thank you, I understand the problem. I will try to share all connections and come back to update this post.

    Thread Starter tristanleboss

    (@tristanleboss)

    Thanks for your fast reply.

    No, they are not shared. (I was not aware that Publicize settings were per user unless stated.) But, the last posts that failed to be shared were made under the user account (admin) where all the Publicize settings have been set in the first place.

    I don’t think this plugin is WPML compatible. At least, on my website, the product links are the wrong ones (they are always the English ones…).

Viewing 5 replies - 31 through 35 (of 35 total)