mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
insertBlock is missing description (#2682)
This commit is contained in:
committed by
Ian Storm Taylor
parent
ad15260993
commit
7cbf15e3cc
@@ -26,6 +26,8 @@ Delete everything in the current selection.
|
|||||||
`insertBlock(properties: Object) => Editor` <br/>
|
`insertBlock(properties: Object) => Editor` <br/>
|
||||||
`insertBlock(type: String) => Editor`
|
`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`
|
||||||
|
|
||||||
`deleteBackward(n: Number) => Editor`
|
`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`.
|
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`
|
||||||
|
|
||||||
`insertFragment(fragment: Document) => Editor`
|
`insertFragment(fragment: Document) => Editor`
|
||||||
|
Reference in New Issue
Block a user