From f9d241406c62b6aba1a84b5947d339c1a4c28a6d Mon Sep 17 00:00:00 2001
From: bob <bcz@cs.brown.edu>
Date: Wed, 30 Jan 2019 13:36:03 -0500
Subject: fixed dragging and doc decorations for all docking locations I think.

---
 src/views/nodes/FieldTextBox.tsx | 37 +++++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 16 deletions(-)

(limited to 'src/views/nodes/FieldTextBox.tsx')

diff --git a/src/views/nodes/FieldTextBox.tsx b/src/views/nodes/FieldTextBox.tsx
index 20dfde1d2..45493f0ec 100644
--- a/src/views/nodes/FieldTextBox.tsx
+++ b/src/views/nodes/FieldTextBox.tsx
@@ -1,23 +1,28 @@
-import { Key, KeyStore } from "../../fields/Key";
-import { Document } from "../../fields/Document";
-import { observer } from "mobx-react";
-import { TextField } from "../../fields/TextField";
-import React = require("react")
-import { action, observable, reaction, IReactionDisposer } from "mobx";
-
+import { action, IReactionDisposer, reaction } from "mobx";
+import { baseKeymap } from "prosemirror-commands";
+import { history, redo, undo } from "prosemirror-history";
+import { keymap } from "prosemirror-keymap";
 import { schema } from "prosemirror-schema-basic";
-import { EditorState, Transaction } from "prosemirror-state"
-import { EditorView } from "prosemirror-view"
-import { keymap } from "prosemirror-keymap"
-import { baseKeymap } from "prosemirror-commands"
-import { undo, redo, history } from "prosemirror-history"
+import { EditorState, Transaction } from "prosemirror-state";
+import { EditorView } from "prosemirror-view";
+import { Document } from "../../fields/Document";
 import { Opt } from "../../fields/Field";
-
-import "./FieldTextBox.scss"
-import { DocumentFieldViewProps } from "./DocumentView";
+import { Key } from "../../fields/Key";
+import { TextField } from "../../fields/TextField";
 import { SelectionManager } from "../../util/SelectionManager";
+import { DocumentView } from "./DocumentView";
+import "./FieldTextBox.scss";
+import React = require("react")
 
-
+//
+// these properties get assigned through the render() method of the DocumentView when it creates this node.
+// However, that only happens because the properties are "defined" in FieldTextBox's LayoutString()  method
+//
+interface DocumentFieldViewProps {
+    fieldKey: Key;
+    doc: Document;
+    containingDocumentView: DocumentView
+}
 
 // FieldTextBox: Displays an editable plain text node that maps to a specified Key of a Document
 //
-- 
cgit v1.2.3-70-g09d2

