cetirizine

An experimental matrix client written in reactjs utilizing tailwind and storybook
git clone git://archive.git.mtrnord.blog/MTRNord/cetirizine.git
Log | Files | Refs | README | LICENSE

commit a0f9b08972cdd07dde4c785d1b270eceaf2a4708
parent a9badaa7ba3afe045f4fd01a7a33aa805f659a6e
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon,  8 May 2023 15:09:51 +0200

Remove unused OnChange plugin

Diffstat:
Msrc/components/input/chat/input.tsx | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/components/input/chat/input.tsx b/src/components/input/chat/input.tsx @@ -4,7 +4,6 @@ import { InitialConfigType, LexicalComposer } from '@lexical/react/LexicalCompos import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'; import { ContentEditable } from '@lexical/react/LexicalContentEditable'; import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin'; -import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin'; import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary'; import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin'; import { HeadingNode, QuoteNode } from "@lexical/rich-text"; @@ -292,14 +291,6 @@ const ChatInput: FC<ChatInputProps> = memo(({ namespace, roomID }: ChatInputProp placeholder={<Placeholder />} ErrorBoundary={LexicalErrorBoundary} /> - <OnChangePlugin onChange={(editorState, editor) => { - // Convert editor state to both html and markdown. - // If there is no formatting then just use the plain text. - editorState.read(() => { - - }); - // TODO: we need some send button - }} /> <HistoryPlugin /> <LinkPlugin /> <CodeHighlightPlugin />