fix: Add a plugin to fix the last column in a table (#7036)

This commit is contained in:
Tom Moor
2024-06-14 08:53:32 -04:00
committed by GitHub
parent e1c44ba1a8
commit dfe36fcbf5
3 changed files with 97 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import {
deleteRowSelection,
} from "../commands/table";
import { MarkdownSerializerState } from "../lib/markdown/serializer";
import { FixTablesPlugin } from "../plugins/FixTables";
import tablesRule from "../rules/tables";
import { EditorStyleHelper } from "../styles/EditorStyleHelper";
import { TableLayout } from "../types";
@@ -112,6 +113,7 @@ export default class Table extends Node {
lastColumnResizable: false,
}),
tableEditing(),
new FixTablesPlugin(),
];
}
}