为引用的文本提供视觉强调。“引用他人时,我们也在引用自己。”——胡利奥·科塔萨尔
属性
通过 block.json 中的 attributes 属性定义。
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
value | string | "" | 来源: html。 选择器: blockquote。 角色: content |
citation | rich-text | — | 来源: rich-text。 选择器: cite。 角色: content |
textAlign | string | — | — |
支持功能
通过 block.json 中的 supports 属性定义。
anchor:truealign:"left","right","wide","full"html:falsebackground:backgroundImage:truebackgroundSize:truegradient:true
dimensions:minHeight:trueminWidth:true
typography:fontSize:truelineHeight:true
color:shadow:truelayout:allowEditing:false
spacing:blockGap:truepadding:truemargin:true
interactivity:clientNavigation:true
allowedBlocks:true
块样式
通过 block.json 中的 styles 属性定义。
| 样式名称 | 标签 | 默认值 |
|---|---|---|
default | 默认 | 是 |
plain | 普通 | 否 |
块标记
这是一个 静态块。标记直接保存在帖子内容中。
<!-- wp:quote {"value":""} -->
<!-- Content... -->
<!-- /wp:quote -->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件、index.php等。