提供插入块、更新块和删除块的 API https://github.com/siyuan-note/siyuan/issues/3334

This commit is contained in:
Liang Ding 2021-12-30 16:55:56 +08:00
parent 7baeefcef6
commit d9e34a7e86
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

4
API.md
View file

@ -453,7 +453,7 @@
```
* `dataType`:待插入数据类型,值可选择 `markdown` 或者 `dom`
* `data`插入的数据
* `data`插入的数据
* `previousID`:前一个块的 ID用于锚定插入位置
* 返回值
@ -496,7 +496,7 @@
```
* `dataType`:待更新数据类型,值可选择 `markdown` 或者 `dom`
* `data`更新的数据
* `data`更新的数据
* `id`:待更新块 ID
* 返回值