WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.48k stars 4.18k forks source link

TinyMCE fullscreen mode (DFW) not working properly in meta boxes #16584

Open rilwis opened 5 years ago

rilwis commented 5 years ago

Describe the bug

As meta box is supported, users might create an extra TinyMCE editor in a meta box, which has the fullscreen (DFW - distraction free writing) mode. When clicking on the fullscreen button of the TinyMCE, the UI of the Gutenberg overlaps the UI of the TinyMCE editor, which makes the TinyMCE editor useless.

To reproduce Steps to reproduce the behavior:

  1. Install & activate the Meta Box plugin from wordpress.org: https://wordpress.org/plugins/meta-box/
  2. Create a simple meta box with only one editor field by adding the following code in the functions.php file of the active theme:
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
    $meta_boxes[] = [
        'title' => 'Test',
        'fields' => [
            [
                'id' => 'myeditor',
                'type' => 'wysiwyg',
            ],
        ],
    ];
} ); 
  1. Go to Posts > Add New and create a new post
  2. Click on fullscreen button in the editor and see the error

Expected behavior

When the fullscreen mode is active, the editor of the TinyMCE should be above the Gutenberg editor and accessible to users.

Desktop (please complete the following information):

Additional context

draganescu commented 4 years ago

This looks more like a classic editor z-index issue? cc @azaozz