最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

hooks - Using wp_editor tinyMCE in metabox cause form alert on leaving page

programmeradmin2浏览0评论

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

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

/

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

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/reference/functions/wp_editor/

Share Improve this question asked Feb 18, 2021 at 11:04 DrKDrK 234 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

This is a bug in WP core 5.6.1:

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

which will hopefully be fixed by this:

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

发布评论

评论列表(0)

  1. 暂无评论