aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-02-27 00:01:11 -0500
committerGitHub <noreply@github.com>2019-02-27 00:01:11 -0500
commit609dc8f234f6eafdd5c7ed3f7040fff169bf266a (patch)
tree133da1d566c0fb37e14c84494aa14edef7ed6bd8 /src/client/views/nodes/WebView.tsx
parent04ee2ad6e7ca887c3cfc7277c4b382f936c0fa6d (diff)
parent14d6495e4d4b9d38a37187a50ebeb84057abbc20 (diff)
Merge pull request #7 from browngraphicslab/web_box
Web box
Diffstat (limited to 'src/client/views/nodes/WebView.tsx')
-rw-r--r--src/client/views/nodes/WebView.tsx22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/client/views/nodes/WebView.tsx b/src/client/views/nodes/WebView.tsx
deleted file mode 100644
index 717aa8bf5..000000000
--- a/src/client/views/nodes/WebView.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { FieldViewProps, FieldView } from "./FieldView";
-import { computed } from "mobx";
-import { observer } from "mobx-react";
-import { KeyStore } from "../../../fields/KeyStore";
-import React = require('react')
-import { TextField } from "../../../fields/TextField";
-import { HtmlField } from "../../../fields/HtmlField";
-import { RichTextField } from "../../../fields/RichTextField";
-
-@observer
-export class WebView extends React.Component<FieldViewProps> {
- public static LayoutString(fieldStr: string = "DataKey") { return FieldView.LayoutString(WebView, fieldStr) }
-
- @computed
- get html(): string {
- return this.props.doc.GetData(KeyStore.Data, HtmlField, "" as string);
- }
-
- render() {
- return <span dangerouslySetInnerHTML={{ __html: this.html }}></span>
- }
-} \ No newline at end of file