lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Tables do not work if there are 2 or more lexical editors on one page

Open AlessioGr opened this issue 2 years ago • 3 comments

When there are 2 or more lexical editors on one page, the table throws a "TableCellResizer: Table cell node not found." error if you hover over it with your mouse.

Lexical version: 0.9.0

Steps To Reproduce

  1. Have 2 editors in one page (as seen in the playground of https://github.com/AlessioGr/lexical/tree/two-editors)
  2. place a table and hover over it

Link to code example: https://github.com/AlessioGr/lexical/tree/two-editors

AlessioGr avatar Mar 20 '23 02:03 AlessioGr

https://github.com/AlessioGr/lexical/blob/2adbe542f79cb952acc6ff1ab1b85fd4ad0a53cf/packages/lexical-playground/src/App.tsx#L163

That's how I use 2 editors on one page. This is relevant for me, as I need to be able to have multiple fully functional lexical editors on one page, without them knowing about each other.

AlessioGr avatar Mar 20 '23 02:03 AlessioGr

Is there an answer somewhere regarding this issue, I am facing the exact same issue on my end thought updating would solve but using 12.2 (was 10.0), still issue persists. Kind of the same setup I have multiple lexical editor on top of each other but they are not in the same parents, even though they come from mapping an array so they follow one another on my screen.

Othman-dev avatar Sep 13 '23 09:09 Othman-dev

Hey @zurfyx!

Is this issue planned to be resolved any time soon? It's quite a common use case to have multiple editors within one page in an application.

zawraz avatar Jul 15 '24 09:07 zawraz

I believe this was fixed in here: https://github.com/facebook/lexical/pull/6416 can someone confirm this is no longer an issue?

ivailop7 avatar Aug 21 '24 19:08 ivailop7