]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/nodes.ts
Customization: Added parent tag classes
[bookstack] / resources / js / wysiwyg / nodes.ts
index 8a47f322d6d943e4ad7196e10e8ae6e9d82a9b27..c1db0f0869fc3b59b110652598b4e8158c692d1c 100644 (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,