diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-02-26 23:59:38 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-02-26 23:59:38 -0500 |
commit | 14d6495e4d4b9d38a37187a50ebeb84057abbc20 (patch) | |
tree | 133da1d566c0fb37e14c84494aa14edef7ed6bd8 /src/client/views/nodes/FieldView.tsx | |
parent | faccb013ad0265d1507e0b5c59cabb42aedbb88c (diff) |
from last
Diffstat (limited to 'src/client/views/nodes/FieldView.tsx')
-rw-r--r-- | src/client/views/nodes/FieldView.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
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> } |