Multiple Editors #896
-
Hi, We are having an issue with multiple editors is that for example if we are counting characters and having editor object as:
That all the editors are having same count. Any idea about this issue? when we log the editor id, sometimes while writing in one of the editors, it log other editors IDs as well. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
We have to pass different id for each Plates - https://github.com/udecode/plate/blob/main/packages/core/src/hooks/usePlate/usePlateEffects.ts#L20 It would be great if it is handled by Plate itself. But for now it's a small workaround passing id for each plate. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
useEventEditorId('focus')
returns the focused editor id, you want to use