1 import {HeadingNode, QuoteNode} from '@lexical/rich-text';
2 import {CalloutNode} from './callout';
3 import {KlassConstructor, LexicalNode, LexicalNodeReplacement, ParagraphNode} from "lexical";
4 import {CustomParagraphNode} from "./custom-paragraph";
7 * Load the nodes for lexical.
9 export function getNodesForPageEditor(): (KlassConstructor<typeof LexicalNode> | LexicalNodeReplacement)[] {
11 CalloutNode, // Todo - Create custom
12 HeadingNode, // Todo - Create custom
13 QuoteNode, // Todo - Create custom
16 replace: ParagraphNode,
17 with: (node: ParagraphNode) => {
18 return new CustomParagraphNode();