aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-02 12:39:58 -0500
committerbobzel <zzzman@gmail.com>2021-03-02 12:39:58 -0500
commitfaf9dc5ca6a7380f3b040dc2ddbe07c29689e014 (patch)
treed76e7668597a72f496e7ea3ed4f1a14125c6c9ef /src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts
parentc41696a3169dc765512d64972ba4503cea8393e0 (diff)
some cleanup and extensions to Equationbox stuff. can sort of be nested in text docs with ctrl-m.
Diffstat (limited to 'src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts')
-rw-r--r--src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts b/src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts
index eae4c0179..aa51a3a64 100644
--- a/src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts
+++ b/src/client/views/nodes/formattedText/ProsemirrorExampleTransfer.ts
@@ -145,7 +145,7 @@ export function buildKeymap<S extends Schema<any>>(schema: S, props: any, mapKey
bind("Shift-Ctrl-\\", setBlockType(schema.nodes.code_block));
bind("Ctrl-m", (state: EditorState<S>, dispatch: (tx: Transaction<S>) => void) => {
- dispatch(state.tr.replaceSelectionWith(schema.nodes.dashField.create({ fieldKey: "math" + Utils.GenerateGuid() })));
+ dispatch(state.tr.replaceSelectionWith(schema.nodes.equation.create({ fieldKey: "math" + Utils.GenerateGuid() })));
})
for (let i = 1; i <= 6; i++) {