From 7cbf15e3ccf999d0d581be0223eb548be7e0b820 Mon Sep 17 00:00:00 2001 From: fchenTelus <45402049+fchenTelus@users.noreply.github.com> Date: Wed, 24 Apr 2019 20:09:15 -0400 Subject: [PATCH] insertBlock is missing description (#2682) --- docs/reference/slate/commands.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/slate/commands.md b/docs/reference/slate/commands.md index b496d9725..c25f7e96f 100644 --- a/docs/reference/slate/commands.md +++ b/docs/reference/slate/commands.md @@ -26,6 +26,8 @@ Delete everything in the current selection. `insertBlock(properties: Object) => 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(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`