You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to include some state in the tree view for my custom nodes, on investigation it looks as if there is specific code to handle text and link nodes in the printNode function in generateContent.ts
There appears to be a way to supply a customPrint function however this presumably is not possible to use if relying on the chrome extension for dev tools as there would be no way to pass a custom print function in.
If instead TextNode and LinkNode implemented a printNode abstract function on the base node classes then we could add debug information to custom nodes by overriding
The text was updated successfully, but these errors were encountered:
I would like to include some state in the tree view for my custom nodes, on investigation it looks as if there is specific code to handle text and link nodes in the
printNode
function in generateContent.tslexical/packages/lexical-devtools-core/src/generateContent.ts
Line 253 in d14cc07
There appears to be a way to supply a customPrint function however this presumably is not possible to use if relying on the chrome extension for dev tools as there would be no way to pass a custom print function in.
If instead TextNode and LinkNode implemented a printNode abstract function on the base node classes then we could add debug information to custom nodes by overriding
The text was updated successfully, but these errors were encountered: