diff options
author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-04-04 04:26:46 -0400 |
---|---|---|
committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-04-04 04:26:46 -0400 |
commit | 44673c4f9b14f69f5139c87cb493690bdd0af95b (patch) | |
tree | c9e00b4b193cfb0debac4de17555ce02e25ce1be /src | |
parent | 276250446b4ad0f86a43a6773d2fff83e8bcaa49 (diff) | |
parent | 96240ee73cdd902f3550f817a660fb1b8c5bb6c1 (diff) |
pulling ??
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 2b48494f2..fee2225ad 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -958,11 +958,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps event: () => (this.layoutDoc._layout_autoHeight = !this.layoutDoc._layout_autoHeight), icon: this.Document._layout_autoHeight ? 'lock' : 'unlock', }); - !options && cm.addItem({ description: 'Options...', subitems: optionItems, icon: 'eye' }); - const help = cm.findByDescription('Help...'); - const helpItems = help && 'subitems' in help ? help.subitems : []; - helpItems.push({ description: `show markdown options`, event: RTFMarkup.Instance.open, icon: <BsMarkdownFill /> }); - !help && cm.addItem({ description: 'Help...', subitems: helpItems, icon: 'eye' }); + optionItems.push({ description: `show markdown options`, event: RTFMarkup.Instance.open, icon: <BsMarkdownFill /> }); + !options && cm.addItem({ description: 'Options...', subitems: optionItems, icon: 'sliders' }); this._downX = this._downY = Number.NaN; }; |