aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-02-26 23:59:38 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-02-26 23:59:38 -0500
commit14d6495e4d4b9d38a37187a50ebeb84057abbc20 (patch)
tree133da1d566c0fb37e14c84494aa14edef7ed6bd8
parentfaccb013ad0265d1507e0b5c59cabb42aedbb88c (diff)
from last
-rw-r--r--src/client/views/Main.tsx2
-rw-r--r--src/client/views/nodes/FieldView.tsx5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index af4db521c..578aecd1e 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -85,7 +85,7 @@ Documents.initProtos(() => {
width: 200, height: 200, title: "an image of a cat"
}));
let addWebNode = action(() => Documents.WebDocument("https://cs.brown.edu/courses/cs166/", {
- width: 200, height: 200, title: "an image of a cat"
+ width: 200, height: 200, title: "a sample web page"
}));
let addClick = (creator: any) => action(() => {
diff --git a/src/client/views/nodes/FieldView.tsx b/src/client/views/nodes/FieldView.tsx
index f34574234..a883fa672 100644
--- a/src/client/views/nodes/FieldView.tsx
+++ b/src/client/views/nodes/FieldView.tsx
@@ -12,6 +12,7 @@ import { Key } from "../../../fields/Key";
import { FormattedTextBox } from "./FormattedTextBox";
import { ImageBox } from "./ImageBox";
import { WebBox } from "./WebBox";
+import { HtmlField } from "../../../fields/HtmlField";
//
// these properties get assigned through the render() method of the DocumentView when it creates this node.
@@ -53,6 +54,10 @@ export class FieldView extends React.Component<FieldViewProps> {
else if (field instanceof WebField) {
return <WebBox {...this.props} />
}
+ // bcz: this belongs here, but it doesn't render well so taking it out for now
+ // else if (field instanceof HtmlField) {
+ // return <WebBox {...this.props} />
+ // }
else if (field instanceof NumberField) {
return <p>{field.Data}</p>
}