BookStack/resources/js/wysiwyg/nodes/index.ts
2024-05-27 23:50:28 +01:00

15 lines
350 B
TypeScript

import {HeadingNode, QuoteNode} from '@lexical/rich-text';
import {Callout} from './callout';
import {KlassConstructor, LexicalNode} from "lexical";
/**
* Load the nodes for lexical.
*/
export function getNodesForPageEditor(): KlassConstructor<typeof LexicalNode>[] {
return [
Callout,
HeadingNode,
QuoteNode,
];
}