diff options
author | bob <bcz@cs.brown.edu> | 2019-09-13 11:15:01 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-13 11:15:01 -0400 |
commit | 106d7ca39e36fc114f79fd5fef27998a68fd3d5b (patch) | |
tree | e7522ce7a2df2980390661ed4a834506f8730be8 /src/client/util/RichTextRules.ts | |
parent | 32861c7cfcac8c03be5692fb98b5a7dc7786be83 (diff) |
fixed video w/ templates. changed headings with text boxes, tweaked MakeTemplate titling
Diffstat (limited to 'src/client/util/RichTextRules.ts')
-rw-r--r-- | src/client/util/RichTextRules.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index 8ceb56f2f..c0c62463a 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -64,7 +64,8 @@ export const inpRules = { let ruleProvider = Cast(FormattedTextBox.InputBoxOverlay!.props.Document.ruleProvider, Doc) as Doc; let heading = NumCast(FormattedTextBox.InputBoxOverlay!.props.Document.heading); if (ruleProvider && heading) { - ruleProvider["ruleSize_" + heading] = size; + (Cast(FormattedTextBox.InputBoxOverlay!.props.Document, Doc) as Doc).heading = Number(match[1]); + return state.tr.deleteRange(start, end); } return state.tr.deleteRange(start, end).addStoredMark(schema.marks.pFontSize.create({ fontSize: Number(match[1]) })) }), |