diff options
author | andrewdkim <adkim414@gmail.com> | 2019-08-06 12:30:09 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-08-06 12:30:09 -0400 |
commit | b6990a61befdea70abd99f125a2488ce5a6f04a6 (patch) | |
tree | 833c13a0ddabb325cc2e39dbb199f111cced22d2 /src/debug/Viewer.tsx | |
parent | 2c86a6958186c020ce7fbe99555f07ffe9f9f821 (diff) | |
parent | 298d1c9b29d6ce2171fd9ac8274b64583b73f6f5 (diff) |
merge from master
Diffstat (limited to 'src/debug/Viewer.tsx')
-rw-r--r-- | src/debug/Viewer.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/Viewer.tsx b/src/debug/Viewer.tsx index 2b3eed154..24db3f934 100644 --- a/src/debug/Viewer.tsx +++ b/src/debug/Viewer.tsx @@ -10,6 +10,7 @@ import { List } from '../new_fields/List'; import { URLField } from '../new_fields/URLField'; import { EditableView } from '../client/views/EditableView'; import { CompileScript } from '../client/util/Scripting'; +import { RichTextField } from '../new_fields/RichTextField'; import { DateField } from '../new_fields/DateField'; import { ScriptField } from '../new_fields/ScriptField'; import CursorField from '../new_fields/CursorField'; @@ -126,6 +127,8 @@ class DebugViewer extends React.Component<{ field: FieldResult, setValue(value: content = <p>"{field}"</p>; } else if (typeof field === "number" || typeof field === "boolean") { content = <p>{field}</p>; + } else if (field instanceof RichTextField) { + content = <p>RTF: {field.Data}</p>; } else if (field instanceof URLField) { content = <p>{field.url.href}</p>; } else if (field instanceof Promise) { |