(content: string)
| 201 | const edit = useMemo<Edit>( |
| 202 | () => ({ |
| 203 | update(content: string) { |
| 204 | const { current: element } = elementRef; |
| 205 | if (element) { |
| 206 | const position = getPosition(element); |
| 207 | const prevContent = toString(element); |
| 208 | position.position += content.length - prevContent.length; |
| 209 | state.position = position; |
| 210 | state.onChange(content, position); |
| 211 | } |
| 212 | }, |
| 213 | insert(append: string, deleteOffset?: number) { |
| 214 | const { current: element } = elementRef; |
| 215 | if (element) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…