diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 15:31:13 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 15:31:13 -0400 |
commit | 692381503f2af93dba2a4f30495a17b7b4deed36 (patch) | |
tree | d7e5ff56ea03930b22cce540bb4497e669b4203f /src | |
parent | 985d34dc993748d4be06a61238f077be84dc9678 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/RichTextRules.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index c588a8d98..851619f63 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -99,7 +99,7 @@ export class RichTextRules { return state.tr; } if (value !== "" && value !== undefined) { - this.Document[DataSym][fieldKey] = value; + this.Document[DataSym][fieldKey] = value === "true" ? true : value === "false" ? false : value; } const fieldView = state.schema.nodes.dashField.create({ fieldKey, docid }); return state.tr.deleteRange(start, end).insert(start, fieldView); |