startEditingShapeWithRichText
See source codeStart editing a shape that has rich text, such as text, note, geo, or arrow shapes. This will enter the editing state for the shape and optionally select all the text.
function startEditingShapeWithRichText(
editor: Editor,
shapeOrId: TLShape | TLShapeId,
options?: {
info?: TLEventInfo
selectAll?: boolean
}
): voidParameters
| Name | Description |
|---|---|
| The editor instance. |
| The shape to start editing. This shape must have a richText property with a TLRichText value. |
| Options: selectAll or info (TLEventInfo) |
Returns
voidPrev
setStrokePointRadiiNext
truncateStringWithEllipsis