new nodes not working after creating them ? #7989
-
|
Is there anything that you need to do other than creating nodes, in order for lexical to "register" their existence? |
Beta Was this translation helpful? Give feedback.
Answered by
BenJavaCode
Nov 13, 2025
Replies: 1 comment
-
|
Well the LexicalComposer takes a config, that has a nodes parameter. If you have copied the playground, I believe the file is called NodesArray.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dataman-fan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well the LexicalComposer takes a config, that has a nodes parameter.
Nodes is supposed to be of type : KlassConstructor[]
so essentially you need to create an array of this type, and in it you place all of the nodes you want to register for this lexicalcomposer.
If you have copied the playground, I believe the file is called NodesArray.ts