]> BookStack Code Mirror - bookstack/blob - resources/js/wysiwyg/nodes/index.ts
Lexical: Switched to ts for new editor build
[bookstack] / resources / js / wysiwyg / nodes / index.ts
1 import {HeadingNode, QuoteNode} from '@lexical/rich-text';
2 import {Callout} from './callout';
3 import {KlassConstructor, LexicalNode} from "lexical";
4
5 /**
6  * Load the nodes for lexical.
7  */
8 export function getNodesForPageEditor(): KlassConstructor<typeof LexicalNode>[] {
9     return [
10         Callout,
11         HeadingNode,
12         QuoteNode,
13     ];
14 }