aboutsummaryrefslogtreecommitdiff
path: root/src/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-01 11:33:59 -0500
committerbob <bcz@cs.brown.edu>2019-02-01 11:33:59 -0500
commit3b0c9a8a3282eb3c04123985a0512592fe0affae (patch)
treeb2f9d03e2ce3445ca359a86fa333f89b98028775 /src/views/nodes/DocumentView.tsx
parent38bd04e67c13d073057321c5ba89a1e1aef02179 (diff)
added lightbox for images
Diffstat (limited to 'src/views/nodes/DocumentView.tsx')
-rw-r--r--src/views/nodes/DocumentView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/nodes/DocumentView.tsx b/src/views/nodes/DocumentView.tsx
index 634cd78be..34a95747b 100644
--- a/src/views/nodes/DocumentView.tsx
+++ b/src/views/nodes/DocumentView.tsx
@@ -15,6 +15,7 @@ import { CollectionDockingView } from "../collections/CollectionDockingView";
import { CollectionFreeFormView } from "../collections/CollectionFreeFormView";
import { ContextMenu } from "../ContextMenu";
import { FieldTextBox } from "../nodes/FieldTextBox";
+import { ImageBox } from "../nodes/ImageBox";
import "./NodeView.scss";
import React = require("react");
import { cpus } from "os";
@@ -82,7 +83,7 @@ class DocumentContents extends React.Component<DocumentViewProps> {
}
}
return <JsxParser
- components={{ FieldTextBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView }}
+ components={{ FieldTextBox, ImageBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView }}
bindings={bindings}
jsx={this.layout}
showWarnings={true}