Files
outline/shared/editor/nodes/TableRow.ts
T
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

28 lines
450 B
TypeScript

import type { NodeSpec } from "prosemirror-model";
import Node from "./Node";
export default class TableRow extends Node {
get name() {
return "tr";
}
get schema(): NodeSpec {
return {
content: "(th | td)*",
tableRole: "row",
parseDOM: [{ tag: "tr" }],
toDOM() {
return ["tr", 0];
},
};
}
toMarkdown() {
// see: renderTable
}
parseMarkdown() {
return { block: "tr" };
}
}