mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Lexical: Table cell bg and format setting fixes
- Updated table cell background color setting to be stable by specifically using the background property over the general styles. - Updated format shorcuts to be correct header levels as per old editor and format menu. - Updated format changes to properly update UI afterwards.
This commit is contained in:
@ -282,6 +282,7 @@ export function $clearTableFormatting(table: TableNode): void {
|
||||
const cells = row.getChildren().filter(c => $isTableCellNode(c));
|
||||
for (const cell of cells) {
|
||||
cell.setStyles(new Map);
|
||||
cell.setBackgroundColor(null);
|
||||
cell.clearWidth();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user