Skip to content
Discussion options

You must be logged in to vote

Hi @gyasi-eco

Thanks for coming to Office Hours, sorry it took a while to follow up here.

As we finally came to discover, it wasn't really a versioning problem, just a small implementation detail.

As a reminder, Any Lexical Plugin must be registered as a child of the editor, otherwise it doesn't have access to the editor context, which it will need if you want it to do something.

<ChatComposer
  config={{}}
  onChange={handleComposerChange}
>
  <ClearEditorPlugin />
  <SendButtonPlugin onClick={submitMessage} />
  <EnterKeySubmitPlugin onKeyDown={submitMessage} />
</ChatComposer>

The ClearEditorPlugin is a fairly dumb component, in that all it really does is respond to a command being dis…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants