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

feat: add useComposing hook (#5695)

This commit is contained in:
yf-yang
2024-08-21 07:03:03 +08:00
committed by GitHub
parent e5fed793e7
commit 6cb38e37a4
4 changed files with 854 additions and 813 deletions

View File

@@ -8,6 +8,10 @@
React hooks for Slate editors
#### `useComposing(): boolean`
Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events.
#### `useFocused(): boolean`
Get the current `focused` state of the editor.