diff options
| author | madelinegr <laura_wilson@brown.edu> | 2019-02-27 00:56:43 -0500 |
|---|---|---|
| committer | madelinegr <laura_wilson@brown.edu> | 2019-02-27 00:56:43 -0500 |
| commit | f7829f425e1ccbc6baa2059c91fa914d21963440 (patch) | |
| tree | d3ac69e2ac34eb132a4af987545eaf2e209605fe /src/client/views/nodes/WebView.tsx | |
| parent | 6d96342814874fe5ceec7264887a37e8aa1fab20 (diff) | |
| parent | 7d7d9349a9c2c7136eccf8d08af506d00f2bd2fd (diff) | |
merged
Diffstat (limited to 'src/client/views/nodes/WebView.tsx')
| -rw-r--r-- | src/client/views/nodes/WebView.tsx | 22 |
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 |
