1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Lexical: Switched to ts for new editor build

This commit is contained in:
Dan Brown
2024-05-27 23:50:28 +01:00
parent 6e852d2e65
commit 49546cd627
6 changed files with 62 additions and 30 deletions

View File

@ -0,0 +1,14 @@
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,
];
}