useEditableText
Public function
Signature
function useEditableText(
  id: TLShapeId,
  type: string,
  text: string
): {
  handleBlur: typeof noop
  handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
  handleDoubleClick: (e: any) => any
  handleFocus: typeof noop
  handleInputPointerDown: (e: React.PointerEvent) => void
  handleKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void
  isEditing: boolean
  isEditingAnything: boolean
  isEmpty: boolean
  rInput: React.RefObject<HTMLTextAreaElement>
}
Parameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  |  | 
Returns
{
  handleBlur: typeof noop
  handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
  handleDoubleClick: (e: any) => any
  handleFocus: typeof noop
  handleInputPointerDown: (e: React.PointerEvent) => void
  handleKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void
  isEditing: boolean
  isEditingAnything: boolean
  isEmpty: boolean
  rInput: React.RefObject<HTMLTextAreaElement>
}
References
Source

