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