fix: Backspace at the beginning of code block should convert to paragraph

This commit is contained in:
Tom Moor
2024-03-08 23:59:53 -05:00
parent efcad50970
commit 0983dd91b6
2 changed files with 4 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import { NodeType } from "prosemirror-model";
import backspaceToParagraph from "../commands/backspaceToParagraph";
import { selectAll } from "../commands/selectAll";
import CodeFence from "./CodeFence";
@@ -13,6 +14,7 @@ export default class CodeBlock extends CodeFence {
keys({ type }: { type: NodeType }) {
return {
Backspace: backspaceToParagraph(type),
"Mod-a": selectAll(type),
};
}