mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
15 lines
350 B
TypeScript
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,
|
|
];
|
|
}
|