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 have searched for similar issues in both open and closed tickets and cannot find a duplicate.
I have read the documentation and cannot find an answer.
Describe the bug
When a table is added inside a NestedLexicalEditor, the table cell contents does not update in the source mode until a space outside of the table is clicked within the NestedLexicalEditor. This means saved content can be lost when updating a table which is inside a NestedLexicalEditor.
To Reproduce
Add a component which uses a NestedLexicalEditor to the MDXEditor (e.g. anything which uses the GenericJsxEditor with children)
Click within the NestedLexicalEditor and insert a table
Add some text to a cell of the table
Click on the 'source mode' option to view the MDX source
Observe no text appears in the table source (even if you click outside the NestedLexicalEditor)
Click within the NestedLexicalEditor but outside of the table
The table text has now updated in the MDX source
Expected behavior
The table should update when it's changed, and not require an extra click inside the NestedLexicalEditor to trigger an update.
Screenshots
Video demonstration using the GenericJsxEditor and table plugin:
mdx-table-bug.mp4
Desktop (please complete the following information):
OS: Windows 11
Browser: Observed in Chrome, Edge, and Firefox
Additional context
I think this could be because the table editor doesn't dispatch the NESTED_EDITOR_UPDATED_COMMAND when it saves an update, so the NestedLexicalEditor doesn't update itself.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a table is added inside a
NestedLexicalEditor
, the table cell contents does not update in the source mode until a space outside of the table is clicked within theNestedLexicalEditor
. This means saved content can be lost when updating a table which is inside aNestedLexicalEditor
.To Reproduce
NestedLexicalEditor
to the MDXEditor (e.g. anything which uses theGenericJsxEditor
with children)NestedLexicalEditor
and insert a tableNestedLexicalEditor
)NestedLexicalEditor
but outside of the tableExpected behavior
The table should update when it's changed, and not require an extra click inside the
NestedLexicalEditor
to trigger an update.Screenshots
Video demonstration using the
GenericJsxEditor
and table plugin:mdx-table-bug.mp4
Desktop (please complete the following information):
Additional context
I think this could be because the table editor doesn't dispatch the
NESTED_EDITOR_UPDATED_COMMAND
when it saves an update, so theNestedLexicalEditor
doesn't update itself.The text was updated successfully, but these errors were encountered: