aboutsummaryrefslogtreecommitdiff
path: root/src/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-06 09:44:45 -0500
committerbob <bcz@cs.brown.edu>2019-02-06 09:44:45 -0500
commit7598b88bbad9690c59f8b164144aa0d02a0a211f (patch)
treea05c7f0884139af014daae0cae09ba2e852d90ef /src/views/nodes/FormattedTextBox.tsx
parente59dbb02175ec394a35c496201da71c90cd6a50a (diff)
working stub version
Diffstat (limited to 'src/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/views/nodes/FormattedTextBox.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/nodes/FormattedTextBox.tsx b/src/views/nodes/FormattedTextBox.tsx
index f0385c096..cf6a1181a 100644
--- a/src/views/nodes/FormattedTextBox.tsx
+++ b/src/views/nodes/FormattedTextBox.tsx
@@ -1,4 +1,5 @@
import { action, IReactionDisposer, reaction } from "mobx";
+import { observer } from "mobx-react"
import { baseKeymap } from "prosemirror-commands";
import { history, redo, undo } from "prosemirror-history";
import { keymap } from "prosemirror-keymap";
@@ -29,7 +30,8 @@ import { CollectionFreeFormDocumentView } from "./CollectionFreeFormDocumentView
// When rendered() by React, this extracts the TextController from the Document stored at the
// 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 FormattedTextBox extends React.Component<FieldViewProps> {
public static LayoutString() { return FieldView.LayoutString("FormattedTextBox"); }