1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 02:03:59 +02:00

Add soft break as a separate overridable editor method (#4873)

add changeset
This commit is contained in:
Bryan Haakman
2022-03-20 12:30:08 +01:00
committed by GitHub
parent 07669dca4b
commit 20acca4bc8
9 changed files with 44 additions and 1 deletions

View File

@@ -460,6 +460,10 @@ Insert a fragment at the current selection. If the selection is currently expand
Insert a block break at the current selection. If the selection is currently expanded, delete it first.
#### `insertSoftBreak() => void`
Insert a soft break at the current selection. If the selection is currently expanded, delete it first.
#### `insertNode(node: Node) => void`
Insert a node at the current selection. If the selection is currently expanded, delete it first.