diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-09 16:33:50 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-09 16:33:50 -0400 |
| commit | 719da9462f02fd3afda9b0b65de19de9405ab4fc (patch) | |
| tree | 37197f1f5ce8e7e5c858402e0a6b3f67d23afe57 /src/client/views/nodes/formattedText/RichTextRules.ts | |
| parent | dbd531233ea7c10130976127361f84281026a308 (diff) | |
fixed exporting to work with collections that have no assets, and with ink documents. cleaned up some unused fields. added more explicit support for flashcards.
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextRules.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextRules.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts index fb929d20b..cad56b14b 100644 --- a/src/client/views/nodes/formattedText/RichTextRules.ts +++ b/src/client/views/nodes/formattedText/RichTextRules.ts @@ -215,8 +215,8 @@ export class RichTextRules { }), // stop using active style - new InputRule(new RegExp(/%alt$/), (state, match, start, end) => { - setTimeout(() => (this.Document[this.TextBox.props.fieldKey + '-usePath'] = this.Document[this.TextBox.props.fieldKey + '-usePath'] ? undefined : 'alternate')); + new InputRule(new RegExp(/%\//), (state, match, start, end) => { + setTimeout(this.TextBox.cycleAlternateText); return state.tr.deleteRange(start, end); }), |
