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:
Aakansha Doshi 2022-03-21 17:54:54 +05:30 committed by GitHub
parent ceb43ed8fb
commit 625ecc64ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 159 additions and 81 deletions

View file

@ -107,6 +107,7 @@
"decreaseFontSize": "Decrease font size",
"increaseFontSize": "Increase font size",
"unbindText": "Unbind text",
"bindText": "Bind text to the container",
"link": {
"edit": "Edit link",
"create": "Create link",