diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-01-21 21:42:03 -0500 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-01-21 21:42:03 -0500 |
commit | 6a04f60ce76fbd8274dd9daf285042f9cab16656 (patch) | |
tree | 51b122980818195d79627ea8265ae7b47a7db3ca /src/views/nodes/FieldTextBox.tsx | |
parent | b0a8b59b967eae3d5812fd8e54e9f4f7a3fb80fc (diff) |
context menu basics working
Diffstat (limited to 'src/views/nodes/FieldTextBox.tsx')
-rw-r--r-- | src/views/nodes/FieldTextBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/nodes/FieldTextBox.tsx b/src/views/nodes/FieldTextBox.tsx index dbac3906a..3b8743627 100644 --- a/src/views/nodes/FieldTextBox.tsx +++ b/src/views/nodes/FieldTextBox.tsx @@ -13,6 +13,8 @@ import {baseKeymap} from "prosemirror-commands" import {undo, redo, history} from "prosemirror-history" import { Opt } from "../../fields/Field"; +import "./FieldTextBox.scss" + interface IProps { fieldKey:Key; doc:Document; @@ -34,7 +36,6 @@ interface IProps { // specified Key and assigns it to an HTML input node. When changes are made tot his node, // this will edit the document and assign the new value to that field. // -@observer export class FieldTextBox extends React.Component<IProps> { private _ref: React.RefObject<HTMLDivElement>; private _editorView: Opt<EditorView>; @@ -112,6 +113,6 @@ export class FieldTextBox extends React.Component<IProps> { } render() { - return (<div ref={this._ref} />) + return (<div className="fieldTextBox-cont" ref={this._ref} />) } }
\ No newline at end of file |