Using wp_editor tinyMCE in metabox cause form alert on leaving page

Using tinyMCE as wp_editor in a custom post type metabox create an alert when I try to submit or If I want to change location

Using wp_editor tinyMCE in metabox cause form alert on leaving page

I don’t have such behavior using Quicktags, but since TinyMCE is easier to use I’d like to use it.

I’m aware that using tinymce in a metabox can cause problem since it can’t be move inside the dom, but it’s not the problem here.
I also used the recommended hooks in wordpress codex , ‘edit_page_form’, ‘edit_form_advanced’ and ‘dbx_post_sidebar’ but It doesn’t solve my problems

https://developer.wordpress.org/reference/functions/wp_editor/

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

This is a bug in WP core 5.6.1:

https://core.trac.wordpress.org/ticket/52440

which will hopefully be fixed by this:

https://core.trac.wordpress.org/changeset/50366


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x