1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 18:09:49 +02:00

insertBlock is missing description (#2682)

This commit is contained in:
fchenTelus
2019-04-24 20:09:15 -04:00
committed by Ian Storm Taylor
parent ad15260993
commit 7cbf15e3cc

View File

@@ -26,6 +26,8 @@ Delete everything in the current selection.
`insertBlock(properties: Object) => Editor` <br/>
`insertBlock(type: String) => Editor`
Insert a new block at the same level as the current block, splitting the current block to make room if it is non-empty. If the selection is expanded, it will be deleted first.
### `deleteBackward`
`deleteBackward(n: Number) => Editor`
@@ -38,8 +40,6 @@ Delete backward `n` characters at the current cursor. If the selection is expand
Delete forward `n` characters at the current cursor. If the selection is expanded, this method is equivalent to a regular [`delete()`](#delete). `n` defaults to `1`.
Insert a new block at the same level as the current block, splitting the current block to make room if it is non-empty. If the selection is expanded, it will be deleted first.
### `insertFragment`
`insertFragment(fragment: Document) => Editor`