From 962badfb33c5011e9288966e5db2f8a222939e3a Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 14 Sep 2020 15:49:26 -0400 Subject: small fix to colorBox to set text color for currently active text boxes text field --- src/client/views/nodes/formattedText/RichTextMenu.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/views/nodes/formattedText') 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 { @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; -- cgit v1.2.3-70-g09d2