useEditableRichText
See source codefunction useEditableRichText(
  shapeId: TLShapeId,
  type: string,
  richText?: TLRichText
): {
  handleBlur: () => void
  handleChange: ({ richText }: { richText: TLRichText }) => void
  handleDoubleClick: (
    e:
      | {
          nativeEvent: Event
        }
      | Event
  ) => void
  handleFocus: () => void
  handleInputPointerDown: (e: React.PointerEvent) => void
  handleKeyDown: (e: KeyboardEvent) => void
  handlePaste: (
    e: ClipboardEvent | React.ClipboardEvent<HTMLTextAreaElement>
  ) => void
  isEditing: boolean
  isEmpty: boolean | undefined
  isReadyForEditing: boolean
  rInput: import('react').RefObject<HTMLDivElement>
}Parameters
| Name | Description | 
|---|---|
  | |
  |  | 
  | 
Returns
{
  handleBlur: () => void
  handleChange: ({ richText }: { richText: TLRichText }) => void
  handleDoubleClick: (
    e:
      | {
          nativeEvent: Event
        }
      | Event
  ) => void
  handleFocus: () => void
  handleInputPointerDown: (e: React.PointerEvent) => void
  handleKeyDown: (e: KeyboardEvent) => void
  handlePaste: (
    e: ClipboardEvent | React.ClipboardEvent<HTMLTextAreaElement>
  ) => void
  isEditing: boolean
  isEmpty: boolean | undefined
  isReadyForEditing: boolean
  rInput: import('react').RefObject<HTMLDivElement>
}Prev
useEditablePlainTextNext
useExportAs