Skip to content

Commit

Permalink
fix(type): insert api's normal-table-row*col type constraints (#1019
Browse files Browse the repository at this point in the history
)

* fix(type): `insert` api's `normal-table-row*col` type constraints

* chore: lint
  • Loading branch information
RSS1102 authored Jan 5, 2025
1 parent 05c6cab commit c7217f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/toolbars/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ import {
* - ol(1)有序
* - ul(2)无序列表
* - checklist(3)checklist
* @typedef {(insert:'hr'|'br'|'code'|'formula'|'checklist'|'toc'|'link'|'image'|'video'|'audio'|'normal-table'|'normal-table-row*col')=>void} Insert 向cherry编辑器中插入特定语法
* @typedef {`normal-table-${number}*${number}`} normalTableRowCol 插入表格语法约束
* @typedef {(insert:'hr'|'br'|'code'|'formula'|'checklist'|'toc'|'link'|'image'|'video'|'audio'|'normal-table'|normalTableRowCol)=>void} Insert 向cherry编辑器中插入特定语法(需要在`toolbar`中预先配置功能)
* - hr 水平分割线
* - br 换行
* - code 代码块
Expand Down

0 comments on commit c7217f0

Please sign in to comment.