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

Change <Slate> to a controlled component (#3216)

* change <Slate> to be a controlled component

* add comment about unstable React API
This commit is contained in:
Ian Storm Taylor
2019-12-05 11:36:44 -05:00
committed by GitHub
parent 4c03b497d9
commit f3fc2c2a54
29 changed files with 305 additions and 110 deletions

View File

@@ -9,7 +9,7 @@ interface Editor {
isInline: (element: Element) => boolean
isVoid: (element: Element) => boolean
normalizeNode: (entry: NodeEntry) => void
onChange: (children: Node[], operations: Operation[]) => void
onChange: () => void
children: Node[]
operations: Operation[]
selection: Range | null