feat: Support binding text to container via context menu (#4935)
* feat: Support binding text to closest container * Bind text to selected container * show bind action in canvas and selected container after binding * allow binding if container has no bound text * fix * move logic to show/hide bind actions to contextMenuPredicate * don't show bind action when clicking on bounding box and not elemnts
This commit is contained in:
@ -107,7 +107,8 @@ export type ActionName =
|
||||
| "decreaseFontSize"
|
||||
| "unbindText"
|
||||
| "hyperlink"
|
||||
| "eraser";
|
||||
| "eraser"
|
||||
| "bindText";
|
||||
|
||||
export type PanelComponentProps = {
|
||||
elements: readonly ExcalidrawElement[];
|
||||
|
Reference in New Issue
Block a user