Skip to content

缩进 Indent ​

按 Tab 键插入缩进字符。

用法 ​

ts
import { Indent } from '@qingpai/core'

const editor = new Editor({
  extensions: [Indent],
})

配置 ​

名称类型默认值描述
indentChartsstring'  '插入的缩进字符(默认为两个全角空格)
ts
Indent.configure({
  indentCharts: '  ',
})

键盘快捷键 ​

快捷键描述
Tab在当前位置插入缩进字符

Source code ​

  • packages/core/src/extensions/indent/

轻排编辑器 — 教育领域富文本编辑器