Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

22 lines
501 B
TypeScript

import type { NodeType } from "prosemirror-model";
import backspaceToParagraph from "../commands/backspaceToParagraph";
import { selectAll } from "../commands/selectAll";
import CodeFence from "./CodeFence";
export default class CodeBlock extends CodeFence {
get name() {
return "code_block";
}
get markdownToken() {
return "code_block";
}
keys({ type }: { type: NodeType }) {
return {
Backspace: backspaceToParagraph(type),
"Mod-a": selectAll(type),
};
}
}