mirror of
https://github.com/facebook/lexical.git
synced 2025-05-17 06:59:17 +08:00
[lexical-table] Bug Fix: Add missing DOM import for TableNode frozen rows and columns (#7498)
This commit is contained in:
@ -614,6 +614,12 @@ export function $convertTableElement(
|
||||
if (domNode.hasAttribute('data-lexical-row-striping')) {
|
||||
tableNode.setRowStriping(true);
|
||||
}
|
||||
if (domNode.hasAttribute('data-lexical-frozen-column')) {
|
||||
tableNode.setFrozenColumns(1);
|
||||
}
|
||||
if (domNode.hasAttribute('data-lexical-frozen-row')) {
|
||||
tableNode.setFrozenRows(1);
|
||||
}
|
||||
const colGroup = domNode.querySelector(':scope > colgroup');
|
||||
if (colGroup) {
|
||||
let columns: number[] | undefined = [];
|
||||
|
Reference in New Issue
Block a user