Problem using TablePlugin with TableCellResizerPlugin and initialized editorState #3265
Unanswered
ceberterreche
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to implement
TablePlugin
withTableCellResizerPlugin
but it doesn't work properly when I initialize editorState with serialized data. However, at the same time, when I add a table via the toolbar it works fine.First i tried to pass editor state through
initialConfig
props ofLexicalComposer
but resizing doesn't work at all.Then i tried to set editor state according to the answer of this issue How to save and load editor state from localStorage with React? But resizing work strangely and i have an issue with table selection.
I think this come from the method
applyTableHandlers
inTablePLugin
which doesn't apply correctly if you don't go through theINSERT_TABLE_COMMAND
.Is there a correct way to make table plugins work with initialized data?
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions