mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-23 23:02:08 +03:00
Lexical: Made summary part of details node
To provide more control of the summary as part of details. To support, added a way to ignore elements during import DOM, allowing up to read summaries when parsing details without duplicate nodes involved.
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from "lexical";
|
||||
import {LinkNode} from "@lexical/link";
|
||||
import {ImageNode} from "@lexical/rich-text/LexicalImageNode";
|
||||
import {DetailsNode, SummaryNode} from "@lexical/rich-text/LexicalDetailsNode";
|
||||
import {DetailsNode} from "@lexical/rich-text/LexicalDetailsNode";
|
||||
import {ListItemNode, ListNode} from "@lexical/list";
|
||||
import {TableCellNode, TableNode, TableRowNode} from "@lexical/table";
|
||||
import {HorizontalRuleNode} from "@lexical/rich-text/LexicalHorizontalRuleNode";
|
||||
@@ -34,7 +34,7 @@ export function getNodesForPageEditor(): (KlassConstructor<typeof LexicalNode> |
|
||||
TableCellNode,
|
||||
ImageNode, // TODO - Alignment
|
||||
HorizontalRuleNode,
|
||||
DetailsNode, SummaryNode,
|
||||
DetailsNode,
|
||||
CodeBlockNode,
|
||||
DiagramNode,
|
||||
MediaNode, // TODO - Alignment
|
||||
|
||||
Reference in New Issue
Block a user