From fad74a2d613b30a94aad8a65cfd8db7b916a7ea6 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 15 Sep 2020 16:47:22 -0400 Subject: fixed upating of tags when #keywords are added --- src/client/views/nodes/formattedText/RichTextRules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts index 06c73265a..10d679e45 100644 --- a/src/client/views/nodes/formattedText/RichTextRules.ts +++ b/src/client/views/nodes/formattedText/RichTextRules.ts @@ -322,7 +322,7 @@ export class RichTextRules { const tag = match[1]; if (!tag) return state.tr; this.Document[DataSym]["#" + tag] = "#" + tag; - const tags = StrCast(this.Document.tags, ":"); + const tags = StrCast(this.Document[DataSym].tags, ":"); if (!tags.includes(`#${tag}:`)) { this.Document[DataSym].tags = `${tags + "#" + tag + ':'}`; } -- cgit v1.2.3-70-g09d2