1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added base node/button for details/summary

This commit is contained in:
Dan Brown
2024-06-06 14:43:50 +01:00
parent 0722960260
commit 5c343638b6
5 changed files with 162 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import {ElementNode, KlassConstructor, LexicalNode, LexicalNodeReplacement, Para
import {CustomParagraphNode} from "./custom-paragraph";
import {LinkNode} from "@lexical/link";
import {ImageNode} from "./image";
import {DetailsNode, SummaryNode} from "./details";
/**
* Load the nodes for lexical.
@ -14,6 +15,7 @@ export function getNodesForPageEditor(): (KlassConstructor<typeof LexicalNode> |
HeadingNode, // Todo - Create custom
QuoteNode, // Todo - Create custom
ImageNode,
DetailsNode, SummaryNode,
CustomParagraphNode,
{
replace: ParagraphNode,