BookStack/resources/js/wysiwyg/nodes/index.ts

15 lines
350 B
TypeScript
Raw Normal View History

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,
];
}