添加自定义 HTML 代码并在编辑时预览它。
属性
通过 attributes 属性在 block.json 中定义。
支持
通过 supports 属性在 block.json 中定义。
customClassName:falseclassName:falsehtml:falseinteractivity:clientNavigation:true
listView:truecustomCSS:falsevisibility:false
块标记
这是一个 静态块。标记直接保存在帖子内容中。
<!-- wp:core/html -->
<h1>Some HTML code</h1>
<div>This is a div</div>
<!-- /wp:core/html -->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件,index.php等。