Multiple editors and accessing editors by id through context provider #2481
-
We are building a webapp with multiple editors that can be updated through interactions with other parts of the UI. For example, we have a PDF viewer from which you can add the selection to the last active editor. We are currently using slate, but testing out Lexical on recommendation of an expert. With slate we have a context provider which stores in state a map from I'm wondering how to do this with Lexical? It seems that creation and initialization is now an implementation detail of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Closing as we chatted about this in the Discord. The agreed upon answer was to pass editor instances up to a parent context using a custom plugin via |
Beta Was this translation helpful? Give feedback.
Closing as we chatted about this in the Discord. The agreed upon answer was to pass editor instances up to a parent context using a custom plugin via
useEffect
.