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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user