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

@@ -18,6 +18,7 @@ import {EditorUiContext} from "./ui/framework/core";
import {MediaNode} from "@lexical/rich-text/LexicalMediaNode";
import {HeadingNode} from "@lexical/rich-text/LexicalHeadingNode";
import {QuoteNode} from "@lexical/rich-text/LexicalQuoteNode";
import {CaptionNode} from "@lexical/table/LexicalCaptionNode";
/**
* Load the nodes for lexical.
@@ -32,6 +33,7 @@ export function getNodesForPageEditor(): (KlassConstructor<typeof LexicalNode> |
TableNode,
TableRowNode,
TableCellNode,
CaptionNode,
ImageNode, // TODO - Alignment
HorizontalRuleNode,
DetailsNode,