mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 08:46:35 +02:00
docs: add context to useComposing hook (#5715)
* docs: add context to useComposing hook * fix: run prettier
This commit is contained in:
@@ -12,6 +12,8 @@ React hooks for Slate editors
|
||||
|
||||
Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events.
|
||||
|
||||
Composition events are triggered by typing (composing) with a language that uses a composition character (e.g. Chinese, Japanese, Korean, etc.) [example](https://en.wikipedia.org/wiki/Input_method#/media/File:Typing_%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4_in_Dubeolsik_keyboard_layout.gif).
|
||||
|
||||
#### `useFocused(): boolean`
|
||||
|
||||
Get the current `focused` state of the editor.
|
||||
|
Reference in New Issue
Block a user