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
First of all, I would like to thank the Lexical team for this wonderful plugin that we have. Really helpful and powerful.
But I am here because I am trying to implement the experimental table, without much success, I have been using the lexical-playground package and have been tweaking it to my liking. The thing is when implementing the code in my project, I had to make few changes regarding linting and such so I may have break something somewhere.
As said in the title I was using table before and it was working as intended but when implementing the experimental new table, it always returns null because of the following lines inside TableComponent.tsx :
if (cellEditorConfig === null) { return null }
It seems cellEditor and, if I follow correctly, CellContext is initiated but stays null. And I am a bit lost on how to proceed to populate the context.
Trying a few different things I found this issue but I believe I am in rich text since my editor is looking like follow :
I understand that more code is required to help me on this post, but I am not sure on where you guys would think the problem comes from. So I don't want to pollute with too much lines of code, but I will be glad to share as much as required to go forward.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Everyone,
First of all, I would like to thank the Lexical team for this wonderful plugin that we have. Really helpful and powerful.
But I am here because I am trying to implement the experimental table, without much success, I have been using the lexical-playground package and have been tweaking it to my liking. The thing is when implementing the code in my project, I had to make few changes regarding linting and such so I may have break something somewhere.
As said in the title I was using table before and it was working as intended but when implementing the experimental new table, it always returns null because of the following lines inside
TableComponent.tsx
:if (cellEditorConfig === null) { return null }
It seems
cellEditor
and, if I follow correctly,CellContext
is initiated but stays null. And I am a bit lost on how to proceed to populate the context.Trying a few different things I found this issue but I believe I am in rich text since my editor is looking like follow :
<RichTextPlugin contentEditable={ <div className="editor" ref={onRef}> <ContentEditable className='lexicalContent' /> </div> } placeholder={<div className='lexicalPlaceHolder' >Enter some text...</div> } ErrorBoundary={LexicalErrorBoundary} /> <LexicalNewTablePlugin cellEditorConfig={cellEditorConfig} >
I understand that more code is required to help me on this post, but I am not sure on where you guys would think the problem comes from. So I don't want to pollute with too much lines of code, but I will be glad to share as much as required to go forward.
Thank you for spending the time.
Beta Was this translation helpful? Give feedback.
All reactions