-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new "insert" method and apply to other key handlers
`useEditable` will now return an object with `edit.insert()` and `edit.update()` methods. The latter has been what the hook returned before and updates the entire editable's content by triggering the `onChange` hook. The new `edit.insert()` method is able to delete or insert text around the current cursor position.
- Loading branch information
Showing
1 changed file
with
104 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters