diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-02-26 19:27:34 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-02-26 19:27:34 -0500 |
commit | 183cff4ed4c4a5f20abcb7b56a9921c1f0a33089 (patch) | |
tree | 605d258a9b9dd5a27c0484677a4d510b493ebd5c /src/client/views/nodes/WebView.tsx | |
parent | 56e27c653f73d0846b93f56e355619e142b76500 (diff) |
removed WebView
Diffstat (limited to 'src/client/views/nodes/WebView.tsx')
-rw-r--r-- | src/client/views/nodes/WebView.tsx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/client/views/nodes/WebView.tsx b/src/client/views/nodes/WebView.tsx deleted file mode 100644 index 5cc85eb28..000000000 --- a/src/client/views/nodes/WebView.tsx +++ /dev/null @@ -1,20 +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 { HtmlField } from "../../../fields/HtmlField"; - -@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 |