为文本中的引用内容提供特殊的视觉强调。
属性
通过 attributes 属性在 block.json 中定义。
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
value | rich-text | — | 来源:rich-text。 选择器:p。 角色:content |
citation | rich-text | — | 来源:rich-text。 选择器:cite。 角色:content |
支持功能
通过 supports 属性在 block.json 中定义。
anchor:truealign:"left"、"right"、"wide"、"full"background:backgroundImage:truebackgroundSize:truegradient:true
color:gradients:truebackground:truelink:true
dimensions:minHeight:trueminWidth:true
shadow:truespacing:margin:truepadding:true
typography:fontSize:truelineHeight:truetextAlign:true
interactivity:clientNavigation:true
块标记
这是一个 静态块。标记直接保存在帖子内容中。
<!-- wp:core/pullquote -->
<figure class="wp-block-pullquote">
<blockquote>
<p>Testing pullquote block...</p><cite>...with a caption</cite>
</blockquote>
</figure>
<!-- /wp:core/pullquote -->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件、index.php等。