Skip to content

Commit 1dc4b2c

Browse files
authored
chore(richtext-lexical): export $createServerBlockNode, $isServerBlockNode and ServerBlockNode for the server (#10192)
This is useful for working within custom markdown transformers on the server, using a headless lexical editor
1 parent f3aebe3 commit 1dc4b2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/richtext-lexical/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,12 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte
857857
export { AlignFeature } from './features/align/server/index.js'
858858
export { BlockquoteFeature } from './features/blockquote/server/index.js'
859859
export { BlocksFeature, type BlocksFeatureProps } from './features/blocks/server/index.js'
860-
export { type BlockFields } from './features/blocks/server/nodes/BlocksNode.js'
860+
export {
861+
$createServerBlockNode,
862+
$isServerBlockNode,
863+
type BlockFields,
864+
ServerBlockNode,
865+
} from './features/blocks/server/nodes/BlocksNode.js'
861866

862867
export { LinebreakHTMLConverter } from './features/converters/html/converter/converters/linebreak.js'
863868
export { ParagraphHTMLConverter } from './features/converters/html/converter/converters/paragraph.js'

0 commit comments

Comments
 (0)