diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-14 15:36:56 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-14 15:36:56 -0500 |
commit | 3502cd93891030fa1c9ee21e55354127665acd0b (patch) | |
tree | de3ac80ff312904aaab31b75978aa7e9873f6131 /src/client/util/RichTextRules.ts | |
parent | 3cce5982497564a0f5d69d0248ed07d76ec7bbe8 (diff) | |
parent | 5aecc6d75868dcafd0b1bb560ad5a4ad8ab976fa (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/util/RichTextRules.ts')
-rw-r--r-- | src/client/util/RichTextRules.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index 6b8762a5e..de0f46202 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -121,8 +121,7 @@ export class RichTextRules { new InputRule( new RegExp(/##$/), (state, match, start, end) => { - const schemaDoc = Doc.GetDataDoc(this.Document); - const textDoc = Doc.GetProto(Cast(schemaDoc[DataSym], Doc, null)!); + const textDoc = this.Document[DataSym]; const numInlines = NumCast(textDoc.inlineTextCount); textDoc.inlineTextCount = numInlines + 1; const inlineFieldKey = "inline" + numInlines; // which field on the text document this annotation will write to |