1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Lexical: Added support for table caption nodes

Needs linking up to the table form still.
This commit is contained in:
Dan Brown
2025-01-22 12:54:13 +00:00
parent 04cca77ae6
commit 8a66365d48
5 changed files with 101 additions and 8 deletions

View File

@@ -139,6 +139,8 @@ export class TableNode extends CommonBlockNode {
for (const child of Array.from(tableElement.children)) {
if (child.nodeName === 'TR') {
tBody.append(child);
} else if (child.nodeName === 'CAPTION') {
newElement.insertBefore(child, newElement.firstChild);
} else {
newElement.append(child);
}