diff options
| author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2020-01-09 18:55:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-09 18:55:14 -0500 |
| commit | 29a1f1dae11e7208977faf0c17ec80b6bad97223 (patch) | |
| tree | 46204c2bdaa18cc352868b8d67450f8f2a1a3506 /src/client/views/DocumentDecorations.tsx | |
| parent | 6a45fd58601a2b03ed234f05b9b0a1b91d25a54d (diff) | |
| parent | eec70e08bf5fa5f3a0a4e3b07bdc05777f71d2ef (diff) | |
Merge pull request #329 from browngraphicslab/textbox_fawn_fix
rich text menu
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 4bc24fa93..799b3695c 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -26,6 +26,8 @@ import { IconBox } from "./nodes/IconBox"; import React = require("react"); import { DocumentType } from '../documents/DocumentTypes'; import { ScriptField } from '../../new_fields/ScriptField'; +import { render } from 'react-dom'; +import RichTextMenu from '../util/RichTextMenu'; const higflyout = require("@hig/flyout"); export const { anchorPoints } = higflyout; export const Flyout = higflyout.default; @@ -591,6 +593,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> }}> {minimizeIcon} + {/* <RichTextMenu /> */} + {this._edtingTitle ? <input ref={this._keyinput} className="title" type="text" name="dynbox" value={this._accumulatedTitle} onBlur={e => this.titleBlur(true)} onChange={this.titleChanged} onKeyPress={this.titleEntered} /> : <div className="title" onPointerDown={this.onTitleDown} ><span>{`${this.selectionTitle}`}</span></div>} |
