diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-01-21 09:12:35 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-01-21 09:12:35 -0500 |
| commit | 4d1c1286f311de9d69158adccb02b60638a30e83 (patch) | |
| tree | 5b5352b74bdf252cf35484adbb6c5b0f2703686d /src/new_fields/InkField.ts | |
| parent | 9090808d81028fb7ed8796339524b5a0fa0893d5 (diff) | |
added a ToString() method to fields so that rendering them as RichTextField won't make them unreadable
Diffstat (limited to 'src/new_fields/InkField.ts')
| -rw-r--r-- | src/new_fields/InkField.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/new_fields/InkField.ts b/src/new_fields/InkField.ts index 01493bcc2..4a44b4f55 100644 --- a/src/new_fields/InkField.ts +++ b/src/new_fields/InkField.ts @@ -1,7 +1,7 @@ import { Deserializable } from "../client/util/SerializationHelper"; import { serializable, custom, createSimpleSchema, list, object, map } from "serializr"; import { ObjectField } from "./ObjectField"; -import { Copy, ToScriptString } from "./FieldSymbols"; +import { Copy, ToScriptString, ToString } from "./FieldSymbols"; export enum InkTool { None, @@ -45,4 +45,7 @@ export class InkField extends ObjectField { [ToScriptString]() { return "invalid"; } + [ToString]() { + return "InkField"; + } } |
