1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 15:02:51 +02:00

Add ReactEditor.isComposing(editor) (#4981)

* Add ReactEditor.isComposing(editor)

* Upate changeset from patch to minor
This commit is contained in:
Eric Meier
2022-05-02 15:09:42 -04:00
committed by GitHub
parent de325801cf
commit cb8a551508
5 changed files with 45 additions and 15 deletions

View File

@@ -104,6 +104,10 @@ Get the current editor object from the React context. A version of useSlate that
A React and DOM-specific version of the `Editor` interface. All about translating between the DOM and Slate.
### `isComposing(editor: ReactEditor)`
Check if the user is currently composing inside the editor.
### `findKey(editor: ReactEditor, node: Node)`
Find a key for a Slate node.