From b783500a62788785bbb67bcfb67b355a80014c67 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Mon, 27 Apr 2020 18:03:10 -0400
Subject: added wrapper for dashfieldview

---
 src/client/views/nodes/FormattedTextBox.tsx | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

(limited to 'src/client/views/nodes/FormattedTextBox.tsx')

diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index c2dbce7a8..e913c7228 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -40,7 +40,6 @@ import { ImageResizeView } from "../../util/ImageResizeView";
 import { DashDocCommentView } from "../../util/DashDocCommentView";
 import { DashFieldView } from "../../util/DashFieldView";
 import { FootnoteView } from "../../util/FootnoteView";
-import { ImageResizeView } from "../../util/ImageResizeView";
 import { SummaryView } from "../../util/SummaryView";
 import { DashDocView } from "../../util/DashDocView";
 
@@ -845,30 +844,30 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps &
                 },
                 dispatchTransaction: this.dispatchTransaction,
                 nodeViews: {
-                    dashComment(node, view, getPos) { return new DashDocCommentView({ node, view, getPos }); },
-                    dashField(node, view, getPos) { return new DashFieldView({ node, view, getPos, self }); },
+                    //dashComment(node, view, getPos) { return new DashDocCommentView({ node, view, getPos }); },
+                    dashField(node, view, getPos) { return new DashFieldView(node, view, getPos, self); },
                     //dashDoc(node, view, getPos) { return new DashDocView(node, view, getPos, self); },
-                    dashDoc(node, view, getPos) { return new DashDocView({ node, view, getPos, self }); },
+                    // dashDoc(node, view, getPos) { return new DashDocView({ node, view, getPos, self }); },
 
-                    image(node, view, getPos) {
-                        //const addDocTab = this.props.addDocTab;
-                        return new ImageResizeView({ node, view, getPos, addDocTab: this.props.addDocTab });
-                    },
+                    // image(node, view, getPos) {
+                    //     //const addDocTab = this.props.addDocTab;
+                    //     return new ImageResizeView({ node, view, getPos, addDocTab: this.props.addDocTab });
+                    // },
 
 
-                    // WAS : 
-                    //image(node, view, getPos) { return new ImageResizeView(node, view, getPos, this.props.addDocTab); },
+                    // // WAS : 
+                    // //image(node, view, getPos) { return new ImageResizeView(node, view, getPos, this.props.addDocTab); },
 
-                    summary(node, view, getPos) { return new SummaryView({ node, view, getPos }); },
-                    ordered_list(node, view, getPos) { return new OrderedListView(); },
-                    footnote(node, view, getPos) { return new FootnoteView({ node, outerView, getPos }); }
+                    // summary(node, view, getPos) { return new SummaryView({ node, view, getPos }); },
+                    // ordered_list(node, view, getPos) { return new OrderedListView(); },
+                    // footnote(node, view, getPos) { return new FootnoteView({ node, outerView, getPos }); }
                 },
                 clipboardTextSerializer: this.clipboardTextSerializer,
                 handlePaste: this.handlePaste,
             });
             const startupText = !rtfField && this._editorView && Field.toString(this.dataDoc[fieldKey] as Field);
             if (startupText) {
-                this._editorView.dispatch(this._editorView.state.tr.insertText(startupText));
+                this._editorView!.dispatch(this._editorView!.state.tr.insertText(startupText));
             }
         }
 
-- 
cgit v1.2.3-70-g09d2

