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:
@@ -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
|
||||
|
Reference in New Issue
Block a user