Skip to content
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

wp_editor() does not work in the meta box area #5365

Closed
rilwis opened this issue Mar 3, 2018 · 2 comments
Closed

wp_editor() does not work in the meta box area #5365

rilwis opened this issue Mar 3, 2018 · 2 comments

Comments

@rilwis
Copy link

rilwis commented Mar 3, 2018

Issue Overview

In the meta box area, if we use a custom field that renders an old editor via wp_editor(), then that editor is broken. I understand that Gutenberg removes all the instances of TinyMCE, but the core PHP function wp_editor() should work as expected.

The TinyMCE editor is quite important for users. They need more "areas" to enter extra content, not just in the main editor, which can be outputted in different locations in the frontend.

Steps to Reproduce (for bugs)

I tested with my plugin Meta Box, but I guess it happens with any code that uses wp_editor().

To reproduce the bug, please install the Meta Box plugin. Then put the following code into functions.php of the active theme:

add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
    $meta_boxes[] = [
        'title' => 'Test file upload',
        'fields' => [
            [
                'id' => 'my_custom_editor',
                'type' => 'wysiwyg',
                'name' => 'Test editor',
            ]
        ],
    ];
} );

Then go to add a new post and see how it works.

Any solution is appreciated! Thanks for your time and hard work!

@chthonic-ds
Copy link
Contributor

Related #3302

@youknowriad
Copy link
Contributor

I'm closing this as duplicate of #3302 There's a PR that might land in the future fixing this #3840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants