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

Block editor: content resets to the previous state in "Edit as HTML" by clicking somewhere outside of the edit

programmeradmin6浏览0评论

When I'm adding my custom block and then trying to edit it in "Edit as HTML" mode, any changes reset to the previous state every time when I click outside the editing window. Let say default HTML in my block is <div class="wp-block-my-custom-video-box"></div>, if I make some changes, let say <div class="wp-block-my-custom-video-box">some text</div> some text will disappear. This issue related to WordPress ver. 5.3.2, with ver. 5.2.5 everything works fine. Help me figure out, please, what can cause such strange behavior?

this is a simplified example of the component:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论