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

Lexical: Started build of image node and decoration UI

This commit is contained in:
Dan Brown
2024-06-03 16:56:31 +01:00
parent 7c504a10a8
commit a74e04141c
5 changed files with 195 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import {CalloutNode} from './callout';
import {ElementNode, KlassConstructor, LexicalNode, LexicalNodeReplacement, ParagraphNode} from "lexical";
import {CustomParagraphNode} from "./custom-paragraph";
import {LinkNode} from "@lexical/link";
import {ImageNode} from "./image";
/**
* Load the nodes for lexical.
@ -12,6 +13,7 @@ export function getNodesForPageEditor(): (KlassConstructor<typeof LexicalNode> |
CalloutNode, // Todo - Create custom
HeadingNode, // Todo - Create custom
QuoteNode, // Todo - Create custom
ImageNode,
CustomParagraphNode,
{
replace: ParagraphNode,