use-editable icon indicating copy to clipboard operation
use-editable copied to clipboard

A small React hook to turn elements into fully renderable & editable content surfaces, like code editors, using contenteditable (and magic)

Results 15 use-editable issues
Sort by recently updated
recently updated
newest added

Thanks for the great library. Is it possible to expose selectall functionality? I can achieve this by using the following on click, but it seems like programmatic control over range...

This can be reproduced in [codepen example](https://codesandbox.io/s/use-editable-0l9kc): - Click anywhere on the text - Press and hold [delete] or [backspace] keys *Desired behavior:* text deletion should continue until user stop...

Added maintenance badge to top of README

Hi! I have * an "editable" div, next to * a text input that controls the styling div's text. The text input is not controlled by `use-editable`. When the text...

Hi, I was fiddling around and found a way to associate data with text that is being managed by useEditable. Right now the use cases for use-editable would be limited...

Hi, just bumped into this, the solution is to check `selection.rangeCount !== 0` before calling `selectino.getRangeAt(0)` https://stackoverflow.com/questions/22935320/uncaught-indexsizeerror-failed-to-execute-getrangeat-on-selection-0-is-not I got into this because I called `getState()` while disabled option is true

There is a time delay when deleting all content - about six seconds. Is there a way to identify deletion upon deletion? What can I do to make it faster?...

Lovely approach, thanks a lot! It may be due to browser (latest Chrome) or React version (17), but I THINK it's because the sample in the README is broken. When...

Hello, this PR fixes two issues related to keyboard handling: backspace not working in Firefox at the beginning of a line and capturing ctrl+backspace (delete word) Thanks for this project

When you try to type the text for the first time, it will re-render and defocus from the input box. So you need to select the input box and type...