diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-14 15:49:26 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-14 15:49:26 -0400 |
| commit | 962badfb33c5011e9288966e5db2f8a222939e3a (patch) | |
| tree | 47d6ed281d9360897f7e679efaeb3aeaf366547b /src/client/views/nodes/formattedText | |
| parent | a3e34ebd705778e8bcc11f745087cff2bcafbcaf (diff) | |
small fix to colorBox to set text color for currently active text boxes text field
Diffstat (limited to 'src/client/views/nodes/formattedText')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextMenu.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextMenu.tsx b/src/client/views/nodes/formattedText/RichTextMenu.tsx index da515aa5a..68239a8f1 100644 --- a/src/client/views/nodes/formattedText/RichTextMenu.tsx +++ b/src/client/views/nodes/formattedText/RichTextMenu.tsx @@ -675,6 +675,7 @@ export class RichTextMenu extends AntimodeMenu<AntimodeMenuProps> { @action toggleColorDropdown() { this.showColorDropdown = !this.showColorDropdown; } @action setActiveColor(color: string) { this.activeFontColor = color; } get TextView() { return (this.view as any)?.TextView as FormattedTextBox; } + get TextViewFieldKey() { return this.TextView?.props.fieldKey; } createColorButton() { const self = this; |
