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:
14
resources/js/wysiwyg/nodes/index.ts
Normal file
14
resources/js/wysiwyg/nodes/index.ts
Normal 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,
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user