mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-01 21:35:16 +08: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,
|
|
];
|
|
}
|